Posts Tagged ‘CodeProject’

A recent application I repackaged into an msi put entries into the user profile. Of course, the entries didn’t work by default on XP and Vista, so I got around this by doing the following:

  1. Creating a subfeature of the Complete feature. Call this OS_Specific_Files
  2. For this feature, Add Condition to create 2 conditions: VersionNT >= 600 (for Vista) and VersionNT < 600 (for XP)
  3. Inside the different conditions create the folder structures and place files as required.

The other aspect of this was to trigger the repair when the user logged on as there was no application entry point. ActiveSetup is one way to do this, but I did this through the Run key in order to do the repair at each logon. This can be done by:

  1. Create a registry key in HKLM\Microsoft\Windows\CurrentVersion\Run
  2. Name = [ProductName], Value = msiexec /fp [ProductCode] /qn

Read Full Post »