Link to home
Start Free TrialLog in
Avatar of fatihbarut
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?
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

I'm not sure to understand your question, so I try to explain something about InnoSetup: if I'm wrong, correct me, please.

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
Avatar of fatihbarut
fatihbarut

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.
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
it was really good explanation
there is a problem.
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...
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