Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Installation suggests previously used directory (http://forums.winamp.com/showthread.php?t=270496)

Mackmannen 2nd May 2007 09:27

Installation suggests previously used directory
 
I have some trouble when building different installations for different versions of my program. When I run the newer installation, the suggested directory to install to is the previously used directory, for an older version.

I make up the InstallDir using:
code:
InstallDir "$PROGRAMFILES\MyCompany\${PRODUCT_FULL_NAME}"

Where the variables are something like;
code:

!define PRODUCT_NAME "MyProgram"
!define PRODUCT_VERSION "2.0 RC2"
!define PRODUCT_FULL_NAME "${PRODUCT_NAME} ${PRODUCT_VERSION}"


So the install dir should look something like
"C:\Program Files\MyCompany\MyProgram 2.0 RC2"
But instead I get
"C:\Program Files\MyCompany\MyProgram 2.0 RC1"
which I previously used as installdir.
I'm 100% positive that I changed the variable in the NSIS script. The variable is used in the output file, why I know it's right.

Any ideas to why this happens?

Mackmannen 2nd May 2007 09:30

OK, I big RTFM on me, for not reading about InstallDirRegKey, which my co-developer have snuck into the script =^_^=

I can't delete my original post... Any ideas how?

Afrow UK 2nd May 2007 10:05

Moderators can only delete it, but it's a worthy topic to keep in my opinion for future reference for others :)

Stu

Mackmannen 2nd May 2007 11:36

At least I'll be the boozo that other can point to and say "Don't do like him!" ;-)


All times are GMT. The time now is 04:20.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.