Old 18th May 2003, 17:06   #1
Chakotay1308
Junior Member
 
Join Date: May 2003
Location: Germany, Königswinter
Posts: 3
Send a message via ICQ to Chakotay1308
2 Problems

Hi,
I'm using NSIS since few hours.
I tried to create a small installer. I tried to set the Iconfile on this way:
code:
!define MUI_ICON "${NSISDIR}\Contrib\Icons\modern-install.ico"

On the same way I setted the MUI_UNICON. But in the install-routine the icon was a windows-x (red circle with a white X). But in the uninstall-routine the icon was the MUI_UNICON.
By compiling the compiler did not raise an error.

There is one problem more:
My startmenupath looks so: "$SMPROGRAMS\CSD-Software\MovieOrganizer". When I uninstall the program the uninstaller only removes the directory "MovieOrganizer". So I have written the following line:
code:
RMDir "$SMPROGRAMS\CSD-Software"

But it did not work...

I am hopeful, that you can help me...

Chris

PS: Sorry for my bad english...
Chakotay1308 is offline   Reply With Quote
Old 18th May 2003, 17:17   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
Welcome to the Forums
1. Put those define before
!include "MUI.nsh".
Can you put your instruction for uninstall icon.
2. try this:
code:

RMDir /r "$SMPROGRAMS\CSD-Software"



* 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 18th May 2003, 17:51   #3
Chakotay1308
Junior Member
 
Join Date: May 2003
Location: Germany, Königswinter
Posts: 3
Send a message via ICQ to Chakotay1308
Thanks...
For the 2nd problem I found the solve: I did not write $SMPROGRAMS, but $SMPPROGRAMS.

!include "MUI.nsh" is the first line. I attached the scriptfile to the thread, maybe it is better for help...

Chris

PS: The instruction for the unistall-icon is in the file...
Attached Files
File Type: nsi setup_csd.nsi (5.5 KB, 120 views)
Chakotay1308 is offline   Reply With Quote
Old 18th May 2003, 17:55   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Can you please attach the compiled installer (without the File commands to save space) so I can see this icon problem? The forum doesn't accept EXE files so you'll have to zip it first.

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 18th May 2003, 18:00   #5
Chakotay1308
Junior Member
 
Join Date: May 2003
Location: Germany, Königswinter
Posts: 3
Send a message via ICQ to Chakotay1308
Oh.... I got it...
It is a really silly problem: OutputFile was "Setup_CSD" without an extension. So Windows doesnt unterstand the icon...

Sorry for making trouble...

Chris
Chakotay1308 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