Difference between revisions of "PWGen"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
 
Line 24: Line 24:
 
<install cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories" /Y' />
 
<install cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories" /Y' />
 
<install cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.ini" "%PROGRAMFILES%\PWGen\" /Y' />
 
<install cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.ini" "%PROGRAMFILES%\PWGen\" /Y' />
                <install cmd='"%SOFTWARE%\system\setacl.exe" -on "%PROGRAMFILES%\PWGen\PWGen.ini" -ot file -actn ace -ace "n:yourdomain\Domain Users;p:read,write"' />
+
              <install cmd='"%SOFTWARE%\system\setacl.exe" -on "%PROGRAMFILES%\PWGen\PWGen.ini" -ot file -actn ace -ace "n:yourdomain\Domain Users;p:read,write"' />
  
 
<upgrade cmd='"%SOFTWARE%\pwgen\PWGen-2.03-setup.exe" /VERYSILENT /NORESTART'/>
 
<upgrade cmd='"%SOFTWARE%\pwgen\PWGen-2.03-setup.exe" /VERYSILENT /NORESTART'/>
Line 30: Line 30:
 
<upgrade cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories" /Y' />
 
<upgrade cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories" /Y' />
 
<upgrade cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.ini" "%PROGRAMFILES%\PWGen\" /Y' />
 
<upgrade cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.ini" "%PROGRAMFILES%\PWGen\" /Y' />
                <upgrade cmd='"%SOFTWARE%\system\setacl.exe" -on "%PROGRAMFILES%\PWGen\PWGen.ini" -ot file -actn ace -ace "n:yourdomain\Domain Users;p:read,write"' />
+
              <upgrade cmd='"%SOFTWARE%\system\setacl.exe" -on "%PROGRAMFILES%\PWGen\PWGen.ini" -ot file -actn ace -ace "n:yourdomain\Domain Users;p:read,write"' />
  
 
<remove cmd='"%programfiles%\PWGen\unins000.exe" /VERYSILENT /NORESTART' />
 
<remove cmd='"%programfiles%\PWGen\unins000.exe" /VERYSILENT /NORESTART' />

Latest revision as of 23:10, 26 January 2010

PWGen is a random password/passphrase generator for Windows.
This installer deletes the default Start Menu entry and moves the shortcut to the Accessories menu to reduce Start Menu clutter.
It also copies a custom PWGen.ini to set passphrases as default.
I have used SetACL to allow Domain Users to save changes to the PWGen.ini.

	<package 

		id="pwgen"
		name="PWGen Password Generator"
		revision="2.03"
		reboot="false"
		priority="16">

		<check type="uninstall" condition="exists" path="PWGen 2.03"/>

		<install cmd='"%SOFTWARE%\pwgen\PWGen-2.03-setup.exe" /VERYSILENT /NORESTART'/>
		<install cmd='%comspec% /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\PWGen"'><exit code="any" /></install>
		<install cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories" /Y' />
		<install cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.ini" "%PROGRAMFILES%\PWGen\" /Y' />
              <install cmd='"%SOFTWARE%\system\setacl.exe" -on "%PROGRAMFILES%\PWGen\PWGen.ini" -ot file -actn ace -ace "n:yourdomain\Domain Users;p:read,write"' />

		<upgrade cmd='"%SOFTWARE%\pwgen\PWGen-2.03-setup.exe" /VERYSILENT /NORESTART'/>
		<upgrade cmd='%comspec% /c rmdir /q /s "%AllUsersProfile%\Start Menu\Programs\PWGen"'><exit code="any" /></upgrade>
		<upgrade cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories" /Y' />
		<upgrade cmd='%COMSPEC% /c xcopy "%SOFTWARE%\pwgen\PWGen.ini" "%PROGRAMFILES%\PWGen\" /Y' />
              <upgrade cmd='"%SOFTWARE%\system\setacl.exe" -on "%PROGRAMFILES%\PWGen\PWGen.ini" -ot file -actn ace -ace "n:yourdomain\Domain Users;p:read,write"' />

		<remove cmd='"%programfiles%\PWGen\unins000.exe" /VERYSILENT /NORESTART' />


	</package>