|
#301
|
|||
|
|||
|
Quote:
Quote:
Quote:
|
| Sponsored Links |
|
#302
|
||||
|
||||
|
it means there are two, initializewizards.
if you come across such, just copy all the content in the procedure or function to the one which comes first. for example: procedure IntializeWizard; begin Result:=True; end; procedure InitializeWizard; begin DirTreeView:= TFolderTreeView.Create(WizardForm) DirTreeView.SetBounds(0,100,417,110) DirTreeView.OnChange:= @DirFolderChange DirTreeView.Parent:= WizardForm.SelectDirPage end; to procedure IntializeWizard; begin DirTreeView:= TFolderTreeView.Create(WizardForm) DirTreeView.SetBounds(0,100,417,110) DirTreeView.OnChange:= @DirFolderChange DirTreeView.Parent:= WizardForm.SelectDirPage Result:=True; end; |
|
#303
|
|||
|
|||
|
the problem is that the second one is in an external iss file
and that file have it like this: Quote:
|
|
#304
|
||||
|
||||
|
then don't just copy this
Code:
DirTreeView:= TFolderTreeView.Create(WizardForm) DirTreeView.SetBounds(0,100,417,110) DirTreeView.OnChange:= @DirFolderChange DirTreeView.Parent:= WizardForm.SelectDirPage var DirTreeView: TFolderTreeView; procedure DirFolderChange(Sender: TObject); Begin WizardForm.DirEdit.Text:=AddBackslash(DirTreeView. Directory) end; procedure InitializeWizard; begin DirTreeView:= TFolderTreeView.Create(WizardForm) DirTreeView.SetBounds(0,100,417,110) DirTreeView.OnChange:= @DirFolderChange DirTreeView.Parent:= WizardForm.SelectDirPage OldWndProc := SetWindowLong(WizardForm.Handle, GWL_WNDPROC, WrapWindowProc(@WndProc, 4)); end; |
| The Following User Says Thank You to Razor12911 For This Useful Post: | ||
danswano (03-04-2013) | ||
|
#305
|
|||
|
|||
|
Ok got it to work but there is one problem, when i select other drive/folder the AppName gets removed, how can i keep the AppName after the selected path automatically?
|
|
#306
|
||||
|
||||
|
are you using Inno Setup PreProcessor Functions?
the #define, #include, #ifdef? |
|
#307
|
|||
|
|||
|
Not sure, how to know?
|
|
#308
|
||||
|
||||
|
hmm, then I don't think you are using that,
edit this line: WizardForm.DirEdit.Text:=AddBackslash(DirTreeView. Directory) to WizardForm.DirEdit.Text:=AddBackslash(DirTreeView. Directory) + 'Dead Space 3' or WizardForm.DirEdit.Text:=AddBackslash(DirTreeView. Directory) + '{#AppName}' ; for those who use Inno Setup PreProcessor |
|
#309
|
|||
|
|||
|
#AppName didn't work for me and editing the folder name manually just sucks, is there any dynamic value i can put to use the original AppName?
|
|
#310
|
||||
|
||||
|
Personal folder ico
It is possible to integrate this code into setup yenner90,
to customize folder icons? [Files] Source: Include\Desktop.ico; DestDir: {app}; Flags: ignoreversion; Attribs: hidden system procedure CurStepChanged(CurStep: TSetupStep); var ErrorCode: Integer; begin if CurStep = ssPostInstall then begin SetIniString('.ShellClassInfo', 'IconResource', ExpandConstant('{app}\MyProg.exe') + #13#10 'IconIndex=0', ExpandConstant('{app}\desktop.ini')); Exec('attrib', ' +r ' + '"' + ExpandConstant('{app}') + '"', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode); Exec('attrib', ' +h +s ' + '"' + ExpandConstant('{app}\desktop.ini') + '"', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode); end; end; procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin if CurUninstallStep = usUninstall then DeleteFile(ExpandConstant('{app}\desktop.ini')); end; Last edited by nicola16; 03-04-2013 at 14:40. |
|
#311
|
||||
|
||||
|
don't use the one for #appname.
|
|
#312
|
||||
|
||||
|
Quote:
|
|
#313
|
||||
|
||||
|
code is perfect icon folder personal
![]() correct code is [Files] Source: Include\Desktop.ico; DestDir: {app}; Flags: ignoreversion; Attribs: hidden system procedure CurStepChanged(CurStep: TSetupStep); var ErrorCode: Integer; begin if CurStep = ssPostInstall then begin SetIniString('.ShellClassInfo', 'IconResource', ExpandConstant('{app}\Desktop.ico') + #13#10 'IconIndex=0', ExpandConstant('{app}\desktop.ini')); Exec('attrib', ' +r ' + '"' + ExpandConstant('{app}') + '"', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode); Exec('attrib', ' +h +s ' + '"' + ExpandConstant('{app}\desktop.ini') + '"', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode); end; end; procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep); begin if CurUninstallStep = usUninstall then DeleteFile(ExpandConstant('{app}\desktop.ini')); end; |
|
#314
|
||||
|
||||
|
#315
|
||||
|
||||
|
read the previous 10 posts to understand and fix bug.
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
| INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |