Difference between revisions of "Phosco"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 7: Line 7:
 
First the entry for packages.xml:
 
First the entry for packages.xml:
  
    <package
+
<source lang="xml">
 +
<package
 
         id="phosco"
 
         id="phosco"
 
         name="phosco Trial"
 
         name="phosco Trial"
Line 18: Line 19:
 
         <remove  cmd='%SOFTWARE%\PhOScO\phosco-uninstall.bat' />
 
         <remove  cmd='%SOFTWARE%\PhOScO\phosco-uninstall.bat' />
 
          
 
          
  </package>
+
</package>
 +
</source>
  
 
First install PhOScO in a normal way on a workstation, to %PROGRAMFILES%\phosco. Then copy everything you installed to a location on your server. Copy also all PhOScO shortcuts (Documente und Einstellungen\All Users\Desktop - something like this, full paths).<br>
 
First install PhOScO in a normal way on a workstation, to %PROGRAMFILES%\phosco. Then copy everything you installed to a location on your server. Copy also all PhOScO shortcuts (Documente und Einstellungen\All Users\Desktop - something like this, full paths).<br>
 
It is best to put it on the server like this:
 
It is best to put it on the server like this:
  
%SOFTWARE%\phosco\phoscofiles
+
%SOFTWARE%\phosco\phoscofiles
  
 
and there:
 
and there:
Line 32: Line 34:
 
This batch file - phosco-install.bat - installs PhOScO (if you use a non-German system, change "Benutzer" to a proper name in your system):
 
This batch file - phosco-install.bat - installs PhOScO (if you use a non-German system, change "Benutzer" to a proper name in your system):
  
 
+
<source lang="dos">
call xcopy "%SOFTWARE%\PhOScO\phoscofiles\*" c:\ /S /E /Y /Q
+
call xcopy "%SOFTWARE%\PhOScO\phoscofiles\*" c:\ /S /E /Y /Q
cacls %PROGRAMFILES%\PhOScO /T /E /P Benutzer:f >nul
+
cacls %PROGRAMFILES%\PhOScO /T /E /P Benutzer:f >nul
 
+
</source>
  
  
 
This batch file - phosco-uninstall.bat - uninstalls PhOScO ("echo" at the end is used so that the script then exits with a code 0):
 
This batch file - phosco-uninstall.bat - uninstalls PhOScO ("echo" at the end is used so that the script then exits with a code 0):
  
rd %PROGRAMFILES%\PhOScO\ /s /q
+
<source lang="dos">
del "%ALLUSERSPROFILE%\Desktop\stmk.lnk"
+
rd %PROGRAMFILES%\PhOScO\ /s /q
del "%ALLUSERSPROFILE%\Desktop\TB.lnk"
+
del "%ALLUSERSPROFILE%\Desktop\stmk.lnk"
echo
+
del "%ALLUSERSPROFILE%\Desktop\TB.lnk"
 +
echo
 +
</source>
  
 
[[category:Silent Installers]]
 
[[category:Silent Installers]]

Revision as of 19:24, 12 March 2008

This is a silent installer and uninstaller for PhOScO.

PhOScO 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="phosco"
        name="phosco Trial"
        revision="1"
        reboot="false"
        priority="0">
        <check type="file" condition="exists" path="%PROGRAMFILES%\PhOSCo\PhOSCo\phosco-1.3-beta.jar" />
        
        <install cmd='%SOFTWARE%\PhOScO\phosco-install.bat' />
        <remove  cmd='%SOFTWARE%\PhOScO\phosco-uninstall.bat' />
        
</package>

First install PhOScO in a normal way on a workstation, to %PROGRAMFILES%\phosco. Then copy everything you installed to a location on your server. Copy also all PhOScO shortcuts (Documente und Einstellungen\All Users\Desktop - something like this, full paths).
It is best to put it on the server like this:

%SOFTWARE%\phosco\phoscofiles

and there:

Programme\phosco - a directory containing files which go to C:\Programme\phosco
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 - phosco-install.bat - installs PhOScO (if you use a non-German system, change "Benutzer" to a proper name in your system):

call xcopy "%SOFTWARE%\PhOScO\phoscofiles\*" c:\ /S /E /Y /Q
cacls %PROGRAMFILES%\PhOScO /T /E /P Benutzer:f >nul


This batch file - phosco-uninstall.bat - uninstalls PhOScO ("echo" at the end is used so that the script then exits with a code 0):

rd %PROGRAMFILES%\PhOScO\ /s /q
del "%ALLUSERSPROFILE%\Desktop\stmk.lnk"
del "%ALLUSERSPROFILE%\Desktop\TB.lnk"
echo