fatihbarut
asked on
Configuration of Inno Setup
Hi guys,
I am trying to do that
I have file1 and file2 and install that like this
C:/Myfolder/file1
User prompt to ask where to install and get result as "user defined folder" then
User defined path/My Folder/file2
could you help me please,
Not: Another problem. I don't want user account settings block my program. Is there anyway to register my program.exe as trustful asking or without asking user while setup?
I am trying to do that
I have file1 and file2 and install that like this
C:/Myfolder/file1
User prompt to ask where to install and get result as "user defined folder" then
User defined path/My Folder/file2
could you help me please,
Not: Another problem. I don't want user account settings block my program. Is there anyway to register my program.exe as trustful asking or without asking user while setup?
ASKER
thanks
I was using innohelper. This is obviosly better one and ofcourse at least 100p answer.
however I still need help.
The question is how can I let the user change the installation path. Actually they must change it. It must be obligation.
I was using innohelper. This is obviosly better one and ofcourse at least 100p answer.
however I still need help.
The question is how can I let the user change the installation path. Actually they must change it. It must be obligation.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
it was really good explanation
ASKER
there is a problem.
I dont want to create directory, I want to use existing one
I dont want to create directory, I want to use existing one
It seems that is not possible: if you set CreateAppDir to false, InnoSetup simply skip select dir page. Let me do some investigation about this, please...
ASKER
thanks, I also noticed that...
Try to modify code this way
function NextButtonClick(CurPageID: Integer): Boolean;
var
ResultCode: Integer;
begin
if CurPageID = wpSelectDir then
begin
if WizardDirValue = GetProgramFolder + '\temp' then
begin
MsgBox('Please, change the default destination folder first.', mbInformation, MB_OK);
Result := False;
end
else if not DirExists(WizardDirValue) then
begin
MsgBox('Please, choose an existent folder.', mbInformation, MB_OK);
Result := False;
end
else
Result := True;
end
else
Result := True;
end;
Cheers
function NextButtonClick(CurPageID:
var
ResultCode: Integer;
begin
if CurPageID = wpSelectDir then
begin
if WizardDirValue = GetProgramFolder + '\temp' then
begin
MsgBox('Please, change the default destination folder first.', mbInformation, MB_OK);
Result := False;
end
else if not DirExists(WizardDirValue) then
begin
MsgBox('Please, choose an existent folder.', mbInformation, MB_OK);
Result := False;
end
else
Result := True;
end
else
Result := True;
end;
Cheers
Firt I suggest you to use InnoIDE: http://www.innoide.org/download.php Just download, install and run.
In InnoIDE, you add files in Files and Folder tab. Here you double click on a file and a window shows up. Here you can select destination folder. Usually if you choose {app} from DestDir->Directory constants you should get what you want.
Cheers