Hey everyone. 🙂
I was wondering if there's any way to create Add/Remove entries for the current user only?
You see, if I install an app. for the current user only, I'd like for the Add/Remove entry for the app. to only show up for the user that actually did the install, not *all* users.
So instead of writing uninstall thusly:
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp" "UninstallString" "$INSTDIR\MyAppUninstall.exe"
Could I write:
WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Uninstall\MyApp" "UninstallString" "$INSTDIR\MyAppUninstall.exe"
or something like that instead?
Thanks in advance. 🙂
Add/Remove for current user only...?
6 posts
I'm pretty sure you can change HKLM to HKCU. There aren't any user-specific entries on my PC though...probably because it's single user.
Try it out though!
Try it out though!
Works for me 👍
Thank you very much petersa and kichik. 🙂
Here's what I have found:
1. Does NOT work on win98 in a multi user setup (oh well it's NT/2k/XP I was really interested in anyway)
2. DOES work on win2k and winXP (yay! 😁)
I did notice on 2k and XP that 'MyApp' was the only one that had Uninstall info. in HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\
In fact, The Uninstall key didn't even exist in HKCU until it was added by 'MyApp'... I guess I shouldn't worry about it - it works fine (on win2k and XP) so why should I fret? 😛
I don't know if it'll work on NT though, I don't have any NT boxes lying around... (hint hint 😉)
Here's what I have found:
1. Does NOT work on win98 in a multi user setup (oh well it's NT/2k/XP I was really interested in anyway)
2. DOES work on win2k and winXP (yay! 😁)
I did notice on 2k and XP that 'MyApp' was the only one that had Uninstall info. in HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\
In fact, The Uninstall key didn't even exist in HKCU until it was added by 'MyApp'... I guess I shouldn't worry about it - it works fine (on win2k and XP) so why should I fret? 😛
I don't know if it'll work on NT though, I don't have any NT boxes lying around... (hint hint 😉)
Can't help you there... but if it works on 2K and XP, I'd bet it'd work on NT... they're pretty much the same thing, I think.
Yeah, that seems like a safe bet - thanks again. 👍