Old 1st April 2004, 23:41   #1
LordKurgan
Junior Member
 
Join Date: Apr 2004
Posts: 7
Programing help.

I need help with 2 things. The first one is it always wants to install to the C:\Program Files no matter what I change it to.

InstallDir "$PROGRAMFILES\ASGS"

The only fix for this I find is if I click the browse button then click ok it then goes to the right folder. Is there maybe a temp file around that it could be reading to point to the program files Directory ? I'm running windows XP pro.

Second thing: How do I get this to run a program and then wait till it's done then continue the install?

Thank You,
LK
LordKurgan is offline   Reply With Quote
Old 2nd April 2004, 01:29   #2
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
1: InstallDir 'C:\MyDir\' will set the install to c:\MyDir the $PROGRAMFILES variable is defined to the windows program files directory which is usually "C:\Program Files"

2: Check out the WaitExec function.

Vytautas
Vytautas is offline   Reply With Quote
Old 2nd April 2004, 01:35   #3
LordKurgan
Junior Member
 
Join Date: Apr 2004
Posts: 7
No matter what what I seem to change it to. It seems to setr it to C:\Program Files right now I have it set to InstallDir 'C:\ASGS\'and it still points to that.
LordKurgan is offline   Reply With Quote
Old 2nd April 2004, 01:48   #4
Vytautas
Major Dude
 
Vytautas's Avatar
 
Join Date: May 2003
Location: Victoria, Australia
Posts: 643
Send a message via ICQ to Vytautas
Does your script have this command in it?

InstallDirRegKey

If so it will be reading that key if it exists and setting the path specified in the first installer you ran with that key.

Vytautas
Vytautas is offline   Reply With Quote
Old 2nd April 2004, 01:51   #5
Craized44
Junior Member
 
Join Date: Apr 2004
Posts: 7
I'm new, might be completely off, but maybe you need
code:
SetOutPath $INSTDIR
After you set $INSTDIR with InstallDir ""
Craized44 is offline   Reply With Quote
Old 2nd April 2004, 02:06   #6
LordKurgan
Junior Member
 
Join Date: Apr 2004
Posts: 7
That is what it's doing, reading the key that exists and setting the path specified in the first time I ran it, I do remember making it c:\program file on my first try hehe ok so what key and where did it put it
LordKurgan is offline   Reply With Quote
Old 2nd April 2004, 02:12   #7
LordKurgan
Junior Member
 
Join Date: Apr 2004
Posts: 7
Thank u I found it it was the reg key
LordKurgan 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