View forum topicList of forum topics
Subject: Setup Executable Run Condition
I need to run Setup Executable only if it is in a specific folder.
If installed application path is c:\program files\myApp, the Setup Exectable would runs if it stay in that folder or subfolder.
Exists a way to set this in project setup?
I didn't understand you well.
Do you want that the user copy your setup file into that folder and run it there?
Do you want that the user can install your application only in that folder?
Do you want that the user can install your application anywhere but the application runs only if the installation path c:\program files\myApp.
Setup runs only if it is lanched from c:\program files\myApp.
In Dialog - Progress If Condition I put:
macrox_get("exepath") == macrox_get("progfiles") + "\\myApp"
and others triks to dispay a custom dialog to say to user that setup must be lauched from c:\program files\myApp
In this way Setup runs but without copy files due to "If Condition".
Is there another/better way to do it?
Insert If Statement command at the beginning of your Script.
Comparison: Not equal (ignore case)
Then insert "Message" command with a warning text into this command and then insert Exit/Reboot command to exit the installation process.
I did it and it works as i expect.
February 05, 2021 Installer CreateInstall 8.8.0 was released. read more
April 11, 2020 Installer CreateInstall 8.7.0 was released.
March 07, 2020 Installer CreateInstall 8.6.2 was released.
November 09, 2019 Installer CreateInstall 8.5.5 was released.
August 08, 2019 Installer CreateInstall 8.5.1 was released.
June 19, 2019 Installer CreateInstall 8.4.11 was released.