Hi all.
This situation is at beginning:
RegKey exisit:
HKLM\Software\Test
String: Test:Hello
After the Setup:
HKLM\Software\Test
String: Test:NewHelloWord
After Uninstall_
HKLM\Software\Test (is deleted)
--> But after uninstall the old key should appear:
HKLM\Software\Test
String: Test:Hello
How can I do it ?
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Modify Registry Keys after uninstall
Started by
neus
, Mar 19 2008 10:31
1 reply to this topic
Posted 19 March 2008 - 15:36
Windows Installer will only undo its own actions. Thus, if it creates a registry entry on install, it will remove that entry on uninstall.
You'll need to record the old contents somewhere during install and restore them on uninstall. If it was me, I'd be doing that via script but then I'm paranoid and I like to know if, for example, when I write an entry that it actually got written, something which you can't do natively in MSI.
There's a registry class knocking about on the Web (Cregistry.CLS or CRegistry.VBS?) which you can use to simplify registry access from script.
You'll need to record the old contents somewhere during install and restore them on uninstall. If it was me, I'd be doing that via script but then I'm paranoid and I like to know if, for example, when I write an entry that it actually got written, something which you can't do natively in MSI.
There's a registry class knocking about on the Web (Cregistry.CLS or CRegistry.VBS?) which you can use to simplify registry access from script.
- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.