Difference between revisions of "Albis"
m |
m (Reverted edits by KevinMurphy (talk) to last revision by WPKGSysop) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
First the entry for packages.xml: | First the entry for packages.xml: | ||
− | + | <source lang="xml"> | |
− | < | + | <package |
− | <package | + | id="albisdemo" |
− | id="albisdemo" | + | name="ALBIS Demoversion" |
− | name="ALBIS Demoversion" | + | revision="1" |
− | revision="1" | + | reboot="false" |
− | reboot="false" | + | priority="0"> |
− | priority="0" | + | <check type="file" condition="exists" path="C:\aowdemo\albis.exe" /> |
− | <check type="file" condition="exists" path="C:\aowdemo\albis.exe" / | + | <install cmd='%SOFTWARE%\albisdemo\aowdemo-install.bat' /> |
− | <install cmd=' | + | |
− | + | <remove cmd='%SOFTWARE%\albisdemo\aowdemo-remove.bat' /> | |
− | + | ||
− | + | </package> | |
− | <remove cmd=' | + | </source> |
− | + | ||
− | + | ||
− | + | ||
− | </package | + | |
− | </ | + | |
Line 30: | Line 25: | ||
It is best to put it on the server like this: | It is best to put it on the server like this: | ||
− | + | %SOFTWARE%\albisdemo\ALBIS\ | |
and there: | and there: | ||
Line 38: | Line 33: | ||
− | This batch file - aowdemo-install.bat - installs Albis (if you use a non-German system, change "Benutzer" to a proper name in your system: | + | This batch file - aowdemo-install.bat - installs Albis (if you use a non-German system, change "Benutzer" to a proper name in your system): |
− | < | + | <source lang="dos"> |
− | call xcopy " | + | call xcopy "%SOFTWARE%\albisdemo\ALBIS\*" c:\ /S /E /Y /Q |
cacls c:\aowdemo /T /E /P Benutzer:f >nul | cacls c:\aowdemo /T /E /P Benutzer:f >nul | ||
− | </ | + | </source> |
− | This batch file - aowdemo-uninstall.bat - | + | This batch file - aowdemo-uninstall.bat - uninstalls Albis: |
− | < | + | <source lang="xml"> |
− | rd C:\aowdemo\ /s /q | + | rd C:\aowdemo\ /s /q |
del "%allusersprofile%\Desktop\Albis.lnk" | del "%allusersprofile%\Desktop\Albis.lnk" | ||
− | </ | + | </source> |
− | + | [[category:Silent Installers]] | |
− | [[category:Silent Installers | + |
Latest revision as of 09:43, 5 August 2012
This is a silent installer and uninstaller for Albis Demoversion.
Albis is broken, as it was designed to be run as Administrator - so if you install it, it won't run as a normal user, but only as an Administrator - unless you correct some permissions.
This is why the installer and uninstaller are placed in separate batch files.
First the entry for packages.xml:
<package
id="albisdemo"
name="ALBIS Demoversion"
revision="1"
reboot="false"
priority="0">
<check type="file" condition="exists" path="C:\aowdemo\albis.exe" />
<install cmd='%SOFTWARE%\albisdemo\aowdemo-install.bat' />
<remove cmd='%SOFTWARE%\albisdemo\aowdemo-remove.bat' />
</package>
First install Albis in a normal way on a workstation to C:\aowdemo. Then copy everything to a location on your server. Copy also all Albis shortcuts (Documente und Einstellungen\All Users\Desktop - something like this, full paths).
It is best to put it on the server like this:
%SOFTWARE%\albisdemo\ALBIS\
and there:
aowdemo - a directory containing files which go to C:\aowdemo
Dokumente und Einstellungen - all shortcuts on the desktop etc.; you will have to change the name of this folder if you have a non-German Windows version.
This batch file - aowdemo-install.bat - installs Albis (if you use a non-German system, change "Benutzer" to a proper name in your system):
call xcopy "%SOFTWARE%\albisdemo\ALBIS\*" c:\ /S /E /Y /Q
cacls c:\aowdemo /T /E /P Benutzer:f >nul
This batch file - aowdemo-uninstall.bat - uninstalls Albis:
rd C:\aowdemo\ /s /q
del "%allusersprofile%\Desktop\Albis.lnk"