Few questions

Common questions about using Actual Installer.
Post Reply
tnd
Posts: 2
Joined: Tue Jan 04, 2011 7:59 pm

Few questions

Post by tnd »

Hello :)

1 question: how can i force my "new installer" to take intalldir from windows registry?
2 question: if question 1 is not possible, how can i "new installer" force to pop-up dialog box with error text if specific file does not exists in the same directory where "new installer" is placed?
3 question: can i force "new installer" to delete specific files if they exists in the directory taken from windows registry?
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Few questions

Post by Leo »

1. To retreive an install path from windows registry go to System\Variables and specify the registry key.
Then you can use this variable on 'Installation\Files and Folder' - 'Default Installation Path'.
3. Yes, use System\Commands:

Code: Select all

Command: <SystemDir>\cmd.exe
Parameters: /C IF EXIST "<MyVar>\file.exe" ( DEL /Q "<MyVar>\file.exe")
Timing: Berfore Installation
Leo,
Actual Installer Team
https://www.actualinstaller.com
tnd
Posts: 2
Joined: Tue Jan 04, 2011 7:59 pm

Re: Few questions

Post by tnd »

It's stupid question, but where can i read the basics of "parameter" field? Its c++ or what?
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Few questions

Post by Leo »

It's MS-DOS command. Please note that the 'Parameters' field must start with: /C
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply