I need to create a custom page from two destinations.
I did:
#define MyAppName "TESTPROG" [Setup] AppName={#MyAppName} DefaultDirName=C:\test\{#MyAppName} DefaultGroupName={#MyAppName} [Code] var Page: TInputDirWizardPage; DataDir: String; procedure InitializeWizard; begin Page := CreateInputDirPage(wpWelcome, 'Select Personal Data Location', 'Where should personal data files be stored?', 'Personal data files will be stored in the following folder.'#13#10#13#10 + 'To continue, click Next. ' + 'If you would like to select a different folder, click Browse.', False, 'New Folder'); Page.Add('Local APP'); Page.Add('Local Storage'); Page.Values[0] := ('C:\My Program'); Page.Values[1] := ('D:\My Program'); DataDir := Page.Values[0]; end;
I need to know how and where I set DefaultDirName with Page.Values[0] and Page.Values[1]
I need this because part of my files will be in a folder, and others in a different folder.
For instance:
[Files] Source: C:\TEST\DLL1.bat; DestDir: Page.Values[0]\sys1; Source: C:\TEST\DLL2.bat; DestDir: Page.Values[1]\sys2;
source share