![]() |
Add/Remove Programs, what am i doing wrong
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. |
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:
http://nsis.sourceforge.net/archive/...php?pageid=103 |
code: |
'cuase you need this:
code: /just for a couple of secs. :D |
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"? |
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 |
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... |
What's wrong with my example above? Didn't it work?
|
no, it didnt work. sorry :)
|
Quote:
|
still didnt work :(
|
Quote:
code: |
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" |
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.
|
| All times are GMT. The time now is 17:48. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.