|
|
#1 |
|
Junior Member
Join Date: Sep 2009
Posts: 2
|
CreateDirectory fails
I've got a script with the following code:
Var /GLOBAL HPATH ReadEnvStr $HPATH HOMEPATH CreateDirectory "$HPATH\Femtosoft\QuickFrog" When I run the installer, it says "Created directory \Users\Ken\Femtosoft\QuickFrog". However, the directory is not created. I've tried various permutations of this with no success. I'm attaching the whole install script in case someone would like to look at it. Thanks for any help. |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Feb 2007
Posts: 546
|
That is because HOMEPATH does not contain the drive.
Now the path is a relative path, so the folder will be created in the $INSTDIR. You need to get the HOMEDRIVE as well: code: |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,779
|
try $PROFILE. But you are not supposed to store files at the root of the profile, use appdata or localappdata
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Sep 2009
Posts: 2
|
Both of you were so right! It's working! Thanks!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|