Difference between revisions of "LogMeIn"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Uninstall keys: Added new key)
(Updated for version 1890)
Line 8: Line 8:
 
# Download InstEd from [www.instedit.com here] and install it
 
# Download InstEd from [www.instedit.com here] and install it
 
# Follow the instructions on [http://www.msfn.org/board/topic/146463-logmein-silent-installer-with-orca-editor/ 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
 
# Follow the instructions on [http://www.msfn.org/board/topic/146463-logmein-silent-installer-with-orca-editor/ 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
# Save the resulting MSI file as logmeinsilent.msi in a folder called logmein in your WPKG software folder
+
# 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:
 +
<source lang=text>
 +
Setup=logmein.msi /q TRANSFORMS=<name of your mst file here>
 +
TempMode
 +
Silent=1
 +
Overwrite=1
 +
</source>
 +
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.
 +
# 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.
 
You will need to do this with each new version.
Line 26: Line 34:
 
priority="50">
 
priority="50">
 
   
 
   
<variable name="version" value="4.1.0.1868" />
+
<variable name="version" value="4.1.0.1890" />
 +
<variable name="installkey" value="{57573545-74EB-46D2-B362-AA05364E4ED8}" />
 
   
 
   
 
<check type="logical" condition="or" >
 
<check type="logical" condition="or" >
<check type="file" condition="versionequalto" path="%programfiles%\LogMeIn\x86\logmein.dll" value="%version%" />
+
<check type="file" condition="versiongreaterorequal" path="%programfiles%\LogMeIn\x86\logmein.dll" value="%version%" />
<check type="file" condition="versionequalto" path="%programfiles(x86)%\LogMeIn\x64\logmein.dll" value="%version%" />
+
<check type="file" condition="versiongreaterorequal" path="%programfiles(x86)%\LogMeIn\x64\logmein.dll" value="%version%" />
 
  </check>
 
  </check>
 
 
<install cmd='%software%\logmein\logmeinsilent.exe' />
 
  
<upgrade cmd='%software%\logmein\logmeinsilent.exe' />
+
<!-- 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% == x86 "%PROGRAMFILES%\LogMeIn\x86\logmein.exe" uninstall' />
<downgrade cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%programfiles(x86)%\logmein\x64\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"' />
  
<downgrade cmd='%software%\logmein\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' />
<remove cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == x86 "%programfiles%\logmein\x86\logmein.exe uninstall' />
+
<remove cmd='%ComSpec% /c if %PROCESSOR_ARCHITECTURE% == AMD64 "%programfiles(x86)%\logmein\x64\logmein.exe -uninstall' />
+
 
    
 
    
 
</package>
 
</package>

Revision as of 10:40, 6 October 2011

Silent installer for LogMeIn

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

  1. Download the original MSI file from here
  2. Download InstEd from [www.instedit.com 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

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

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}' />