Adding registry entry when installing software
I would like to add a registry entry when installing an MSI. My last company had that built into the WISE server so when I compiled ther MSI it was part of the template. It had the following
HKLM\Software\{Comapny Name}\Software
Within that, using my favorite example of Visio, it created a Visio key, then added the following under Visio
- Date installed
- who installed it
- location of MSI (either UNC name or drive leter)
At my new company they don't have that but would like that. If anyone can assist it would be most appreciated and thanks in advance...
Answers (3)
Get the keys setup like you want on a pc, then export them and add them to a Template as suggested above.
Then just replace name of software from your export to [ProductName] and it will place the name of that product in registry. Who installed it value could be grabbed my [USERNAME]
To make is simpler for ya, just save the following as a .reg file, then import it into your template.
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\[ProductName]]
@="[ProductName]"
"InstalledSource"="[SourceDir]"
"Time"="[Date] [Time]"
"UserName"="[USERNAME]"
hope this helps.. :-)