You are here

Duplicate File Detector

2 posts / 0 new
Last post
laststep
Offline
Last seen: 13 years 6 months ago
Joined: 2011-06-18 15:59
Duplicate File Detector

Tell me please, I can not in any way solve the problem ...

Duplicate File Detector at startup creates a folder in the "common documents". I can not simulate the creation of this folder in [DirectoriesMove]...

my Launcher ini:


[Launch]
ProgramExecutable=DFD\dfd.exe

[DirectoriesMove]
Duplicate File Detector=%ALLUSERSPROFILE%\documents\Duplicate File Detector

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 6 months ago
Joined: 2007-04-15 21:08
A bit of custom code

You can get a variable for this with a bit of NSIS code. Put this in App\AppInfo\Launcher\Custom.nsh:

${SegmentFile}

${SegmentInit}
	SetShellVarContext all
	${SetEnvironmentVariablesPath} ALLUSERSDOCUMENTS $DOCUMENTS
	SetShellVarContext current
!macroend

Then you will be able to use it and it'll work across all versions of Windows (whereas if you use %ALLUSERSDOCUMENTS%\Documents it won't work in 2000/XP):

[DirectoriesMove]
Duplicate File Detector=%ALLUSERSDOCUMENTS%\Duplicate File Detector

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