Old 21st January 2009, 23:50   #1
frogman_94
Junior Member
 
Join Date: Jan 2009
Posts: 4
outfile directory

When I create a new install.exe I want it to go into a new directory based on the version number. Is this possible?

OutFile ".\${APP_VERSION}\${INSTALLER_NAME}"

If the new directory does not exists I get an error stating "Can't open output file"

I can manually create the directory and then it works but I was hoping the script would be able to do it automatically.
frogman_94 is offline   Reply With Quote
Old 22nd January 2009, 00:04   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
you could look into using the compile-time commands !execute and/or !system to create the dir first?
Animaether is offline   Reply With Quote
Old 22nd January 2009, 01:14   #3
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
That's how I do it:

code:
!define BUILD_NO "49"
!define COMPILE_DATE "2009-01-21"

!define PATH_OUT "D:\dev\app_name\release\${COMPILE_DATE}.Build-${BUILD_NO}"
!system 'md "${PATH_OUT}"'

OutFile "${Path_Out}\Install.exe"


My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote
Old 22nd January 2009, 16:10   #4
frogman_94
Junior Member
 
Join Date: Jan 2009
Posts: 4
Thanks, that worked perfectly.
frogman_94 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