home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 121
/
FreelogMagazineJuilletAout2014-No121.iso
/
GestionFichiers
/
VirtualVolumesView
/
VirtualVolumesViewPortable_1.2_Rev_2.paf.exe
/
App
/
AppInfo
/
Launcher
/
custom.nsh
next >
Wrap
Text File
|
2013-09-07
|
543b
|
21 lines
${SegmentFile}
${SegmentInit}
ExpandEnvStrings $1 "%PortableApps.comDocuments%"
${If} $1 == ""
${OrIfNot} ${FileExists} "$1\*.*"
${GetParent} $EXEDIR $1
${GetParent} $1 $1
${If} ${FileExists} "$1\Documents\*.*"
StrCpy $2 "$1\Documents"
${Else}
${GetRoot} $EXEDIR $1
${If} ${FileExists} "$1\Documents\*.*"
StrCpy $2 "$1\Documents"
${Else}
StrCpy $2 "$1"
${EndIf}
${EndIf}
System::Call 'Kernel32::SetEnvironmentVariable(t, t) i("PortableApps.comDocuments", "$2").r0'
${EndIf}
!macroend