Old 8th August 2003, 15:43   #1
statblaster
Junior Member
 
Join Date: Jul 2003
Posts: 35
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.
statblaster is offline   Reply With Quote
Old 8th August 2003, 15:49   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 8th August 2003, 15:51   #3
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
code:
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\ABC" \
"DisplayName" "ABC"

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

Joost Verburg is offline   Reply With Quote
Old 8th August 2003, 15:54   #4
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
'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.


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 8th August 2003, 16:00   #5
statblaster
Junior Member
 
Join Date: Jul 2003
Posts: 35
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"?
statblaster is offline   Reply With Quote
Old 8th August 2003, 16:33   #6
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
See my example.
Joost Verburg is offline   Reply With Quote
Old 8th August 2003, 16:33   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 8th August 2003, 18:15   #8
statblaster
Junior Member
 
Join Date: Jul 2003
Posts: 35
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...
statblaster is offline   Reply With Quote
Old 8th August 2003, 18:20   #9
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
What's wrong with my example above? Didn't it work?
Joost Verburg is offline   Reply With Quote
Old 8th August 2003, 18:26   #10
statblaster
Junior Member
 
Join Date: Jul 2003
Posts: 35
no, it didnt work. sorry
statblaster is offline   Reply With Quote
Old 8th August 2003, 18:40   #11
rainwater
Senior Member
 
Join Date: Aug 2000
Posts: 397
Send a message via ICQ to rainwater
Quote:
Originally posted by Joost Verburg
What's wrong with my example above? Didn't it work?
"UninstllString" -> "UninstallString"
rainwater is offline   Reply With Quote
Old 8th August 2003, 18:49   #12
statblaster
Junior Member
 
Join Date: Jul 2003
Posts: 35
still didnt work
statblaster is offline   Reply With Quote
Old 8th August 2003, 18:59   #13
rainwater
Senior Member
 
Join Date: Aug 2000
Posts: 397
Send a message via ICQ to rainwater
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"

rainwater is offline   Reply With Quote
Old 8th August 2003, 19:12   #14
statblaster
Junior Member
 
Join Date: Jul 2003
Posts: 35
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"
statblaster is offline   Reply With Quote
Old 8th August 2003, 19:14   #15
rainwater
Senior Member
 
Join Date: Aug 2000
Posts: 397
Send a message via ICQ to rainwater
Why do you have \ in the line if its all on one line?
rainwater is offline   Reply With Quote
Old 8th August 2003, 19:16   #16
statblaster
Junior Member
 
Join Date: Jul 2003
Posts: 35
what do you mean?
statblaster is offline   Reply With Quote
Old 8th August 2003, 19:18   #17
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump