Index: scripts/setup.iss =================================================================== diff -u -N -re4ae9a48ae631c9160cbd31b2e0e6b3c39b72e80 -r225ff1398752e0eaf3cc3128a07cc15c0da0500c --- scripts/setup.iss (.../setup.iss) (revision e4ae9a48ae631c9160cbd31b2e0e6b3c39b72e80) +++ scripts/setup.iss (.../setup.iss) (revision 225ff1398752e0eaf3cc3128a07cc15c0da0500c) @@ -52,7 +52,7 @@ AppPublisherURL={#MyAppURL} AppSupportURL={#MyAppURL} AppUpdatesURL={#MyAppURL} -DefaultDirName={commonpf}\{#MyAppName} +DefaultDirName={pf}\{#MyAppName} DefaultGroupName={#MyAppName} AllowNoIcons=true LicenseFile=..\License.txt @@ -209,7 +209,7 @@ begin if CurStep = ssPostInstall then begin - if WizardIsTaskSelected('startatboot') then + if IsTaskSelected('startatboot') then ExecAsOriginalUser('Reg.exe', 'add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Copy Handler" /d "' + ExpandConstant('{app}\{code:ExpandArch|ExeFilename}') + '" /f', '', SW_HIDE, ewWaitUntilTerminated, ResultCode) else ExecAsOriginalUser('Reg.exe', 'delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Copy Handler" /f', '', SW_HIDE, ewWaitUntilTerminated, ResultCode)