LogMeIn

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

Silent installer for LogMeIn[edit]

LogMeIn is software for remotely managing PCs. The enterprise version comes with built-in functionality for silent installation via Group Policy, but the free version requires you to edit the installer file manually to insert your own details.

Creating a silent installer[edit]

  1. Download the original MSI file from here
  2. Download InstEd from here and install it
  3. Follow the instructions on this post. The author describes the steps using the Orca MSI editor, but InstEd works in exactly the same way. Make sure all the passwords you enter meet or exceed the logon domain password policy, if any
  4. It is also possible to save the changes as an MST file, in which case it should be saved in the same archive and the SFX comment should be:
Setup=logmein.msi /q TRANSFORMS=<name of your mst file here>
TempMode
Silent=1
Overwrite=1

This has the advantage that you only have to replace the logmein.msi file in the SFX archive rather than edit it again with each new version.

  1. Save the resulting SFX file as logmeinsilent.exe in a folder called logmein in your WPKG software folder

You will need to do this with each new version.

WPKG install package[edit]

For a mixed 32 and 64-bit environment. Note that LogMeIn does not use hyphens or forward slashes in front of its commandline options.

<?xml version="1.0" encoding="UTF-8"?> 
<packages>
 
<package
	id="logmein"
	name="LogMeIn"
	revision="%version%"
	priority="50">
 
	<variable name="version" value="4.1.0.1890" />
	<variable name="installkey" value="{57573545-74EB-46D2-B362-AA05364E4ED8}" />
 
	<check type="logical" condition="or" >
		<check type="file" condition="versiongreaterorequal" path="%programfiles%\LogMeIn\x86\logmein.dll" value="%version%" />
		<check type="file" condition="versiongreaterorequal" path="%programfiles(x86)%\LogMeIn\x64\logmein.dll" value="%version%" />
 	</check>

	<!-- installer needs to be run from local copy -->  
	<install cmd='copy /y "%software%\logmein\logmeinsilent.exe" "%temp%"' />
	<install cmd='"%temp%\logmeinsilent.exe"' />
	
	<upgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PROGRAMFILES%\LogMeIn\x86\logmein.exe" uninstall' />
	<upgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PROGRAMFILES%\LogMeIn\x64\logmein.exe" uninstall' />
	<upgrade cmd='copy /y "%software%\logmein\logmeinsilent.exe" "%temp%"' />
	<upgrade cmd='"%temp%\logmeinsilent.exe"' />

	<downgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PROGRAMFILES%\LogMeIn\x86\logmein.exe" uninstall' />
	<downgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PROGRAMFILES%\LogMeIn\x64\logmein.exe" uninstall' />
	<downgrade cmd='copy /y "%software%\logmein\logmeinsilent.exe" "%temp%"' />
	<downgrade cmd='"%temp%\logmeinsilent.exe"' />

	<remove cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%PROGRAMFILES%\LogMeIn\x86\logmein.exe" uninstall' />
	<remove cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%PROGRAMFILES%\LogMeIn\x64\logmein.exe" uninstall' />
  
</package>
 
</packages>

Uninstall keys[edit]

Useful when the above uninstall command doesn't work correctly

<!-- Remove version 4.1.0.1868 -->
<remove cmd='msiexec /qn /x {57573545-74EB-46D2-B362-AA05364E4ED8}' />
<!-- Remove version 4.0.784 -->
<remove cmd='msiexec /qn /x {7F831576-6246-42C7-B523-55B3F96509CC}' />