PWGen

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

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>