why is this not showing up in the Add/Remove programs list?
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" "ABC" "$INSTDIR\uninst.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" "ABC" "$INSTDIR\ABC.exe"
many thanks.
Add/Remove Programs, what am i doing wrong
17 posts
The value name (ABC) is wrong and some values are missing. Take a look at the following page for more information about adding entries to the Add/Remove control panel:
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" \
"DisplayName" "ABC"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" \
"UninstllString" "$INSTDIR\uninst.exe"
'cuase you need this:
/just for a couple of secs. 😁
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT} ${MUI_VERSION}" \
"DisplayName" "App name"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${MUI_PRODUCT} ${MUI_VERSION}" \
"UninstallString" "uninst-app.exe"
i am sorry, i am not that great w/ this stuff.
whats {mui_product} represent? if thats my product, what would i do w/ the example I gave, w/ "ABC"?
whats {mui_product} represent? if thats my product, what would i do w/ the example I gave, w/ "ABC"?
See my example.
That is for Modern UI installer
You should have
!define MUI_PRODUCT "my app name"
at the top of your nsi file.
If you aren't using Modern UI (you should be!!) then replace ${MUI_PRODUCT} with the directory representing your product.
-Stu
You should have
!define MUI_PRODUCT "my app name"
at the top of your nsi file.
If you aren't using Modern UI (you should be!!) then replace ${MUI_PRODUCT} with the directory representing your product.
-Stu
so i have,
!define MUI_PRODUCT "ABC"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${$INSTDIR\ABC.exe} ${MUI_VERSION}" \ "DisplayName" "App name"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${$INSTDIR\ABC.exe} ${MUI_VERSION}" \ "UninstallString" "uninst.exe"
please help me out...
!define MUI_PRODUCT "ABC"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${$INSTDIR\ABC.exe} ${MUI_VERSION}" \ "DisplayName" "App name"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${$INSTDIR\ABC.exe} ${MUI_VERSION}" \ "UninstallString" "uninst.exe"
please help me out...
What's wrong with my example above? Didn't it work?
no, it didnt work. sorry 🙂
Originally posted by Joost Verburg"UninstllString" -> "UninstallString"
What's wrong with my example above? Didn't it work?
still didnt work 🙁
Originally posted by statblasterWhat about it doesn't work. What are you using? I have done this a million times and have never known it not to work:
still didnt work 🙁
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" "DisplayName" "ABC 1.2.3"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" "UninstallString" "$INSTDIR\uninstall.exe"
its just not showing up in the add/ remove directory. i have attached the code:
WriteRegStr HKLM SOFTWARE\StatBlaster "Install_Dir" "$INSTDIR"
WriteRegStr HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\Run "UpdateStats" "$INSTDIR\UpdateStats.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\StatBlaster" \"DisplayName" "StatBlaster"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\StatBlaster" \"UninstallString" "$INSTDIR\uninst.exe"
WriteRegStr HKLM SOFTWARE\StatBlaster "Install_Dir" "$INSTDIR"
WriteRegStr HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\Run "UpdateStats" "$INSTDIR\UpdateStats.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\StatBlaster" \"DisplayName" "StatBlaster"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\StatBlaster" \"UninstallString" "$INSTDIR\uninst.exe"
Why do you have \ in the line if its all on one line?
what do you mean?
You have copied Joost's code wrongly. The line breaks are supposed to be there and the back-slashes in the end of the line tell NSIS to treat the next line as an extension to the current line. If you join the lines you have to remove those back-slashes.