FileCopy of NSIS installer not working in Windows 7 but working in Windows XP -


i using filecopy of nsis installer copy folder along subfiles source destination. works on xp not on windows 7. when run installer on windows 7 , filecopy dialog doesn't appears, skipped out. in windows xp, shows dialog box of "copying files" , succeeds. what's problem? please help.

!define filecopy `!insertmacro filecopy` !macro filecopy filepath targetdir   createdirectory `${targetdir}`   copyfiles `${filepath}` `${targetdir}` !macroend     ${filecopy} 'c:\accbk\*.*' '$instdir\accbk\' 

to make sure installer runs admin, use code:

requestexecutionlevel admin ;require admin rights on nt6+ (when uac turned on)  !include logiclib.nsh  function .oninit userinfo::getaccounttype pop $0 ${if} $0 != "admin" ;require admin rights on nt4+     messagebox mb_iconstop "administrator rights required!"     seterrorlevel 740 ;error_elevation_required     quit ${endif} functionend 

if problem, means broken on xp (any version of nt really), forgot test non-admin.

copyfiles calls shfileoperation, there breaking changes between xp , vista+ of course...


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -