View Single Post
  #594  
Old 03-11-2020, 05:58
alucard1973 alucard1973 is offline
Registered User
 
Join Date: Apr 2015
Location: Madrid
Posts: 45
Thanks: 1
Thanked 3 Times in 3 Posts
alucard1973 is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
You said you're trying to use {sd}
but the error reports {commonsd}.

Constant called {commonsd} does not exist in Inno Setup.
You should only use {sd}.

The CIU code has an ISPP parameter for compatibility with Inno Setup 5 and also Inno Setup 6.
When used with Inno Setup 6 add "commom" before "pf" to compatibility with Inno Setup 6.
Code:
Just change the line:
DefaultDirName={{#defined(IS_V6) ? "common" : ""}pf}\{code:GetAppPublisher}\{code:GetAppName}

To:
DefaultDirName={sd}\{code:GetAppPublisher}\{code:GetAppName}
These changes above will not change the path in DirEdit.
It is also necessary to look in the code and change "{pf}" to "{sd}" also on this line (Here is line 22357).
Code:
WizardForm.DirEdit.Text := AddBackslash(ExpandConstant('{pf}\') + GetAppPublisher('')) + GetAppName('');
for me it's line 22366 because I use the u2 version and not u3 because decompression problem as explained later
thanks

Last edited by alucard1973; 03-11-2020 at 06:01.
Reply With Quote
The Following User Says Thank You to alucard1973 For This Useful Post:
Cesar82 (03-11-2020)