You are here

Making Data Directory movable

2 posts / 0 new
Last post
mzorova
Offline
Last seen: 12 years 9 months ago
Joined: 2008-04-13 12:34
Making Data Directory movable

${SegmentFile}
Var CustomDataDir

${SegmentInit}
StrCpy $CustomDataDir "Data"
${ReadUserOverrideConfig} $0 SettingsDirectory
${IfThen} $0 != "" ${|} StrCpy $CustomDataDir $0 ${|}
${SetEnvironmentVariable} PAL:DataDir "$EXEDIR\$CustomDataDir"
!macroend

This does not seem to work.. Any suggestions?

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 9 months ago
Joined: 2007-04-15 21:08
DON'T!

You can't do that. It won't work and I will never make it work.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Log in or register to post comments