Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Add/Remove Programs, what am i doing wrong (http://forums.winamp.com/showthread.php?t=145149)

statblaster 8th August 2003 15:43

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.

kichik 8th August 2003 15:49

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

Joost Verburg 8th August 2003 15:51

code:
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" \
"DisplayName" "ABC"

WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" \
"UninstllString" "$INSTDIR\uninst.exe"


Joel 8th August 2003 15:54

'cuase you need this:
code:

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"


/just for a couple of secs. :D

statblaster 8th August 2003 16:00

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"?

Joost Verburg 8th August 2003 16:33

See my example.

Afrow UK 8th August 2003 16:33

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

statblaster 8th August 2003 18:15

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...

Joost Verburg 8th August 2003 18:20

What's wrong with my example above? Didn't it work?

statblaster 8th August 2003 18:26

no, it didnt work. sorry :)

rainwater 8th August 2003 18:40

Quote:

Originally posted by Joost Verburg
What's wrong with my example above? Didn't it work?
"UninstllString" -> "UninstallString"

statblaster 8th August 2003 18:49

still didnt work :(

rainwater 8th August 2003 18:59

Quote:

Originally posted by statblaster
still didnt work :(
What about it doesn't work. What are you using? I have done this a million times and have never known it not to work:

code:

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"


statblaster 8th August 2003 19:12

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"

rainwater 8th August 2003 19:14

Why do you have \ in the line if its all on one line?

statblaster 8th August 2003 19:16

what do you mean?

kichik 8th August 2003 19:18

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.