This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- newcomer questions: prereq conditions determining type of install?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Aug 17, 2007
06:49 PM
newcomer questions: prereq conditions determining type of install?
Hi all.
I need to create an MSI project that checks if certain things are installed on the destination system. If they are, install A happens (without prompting the user), and if they are not, install B happens (again, without prompting).
Is there a tutorial somewhere that will show me this?
I went through the evaluation guide and the example there helped me to get started, but it wasn't enough for what I need atm.
Also, is it possible for the package to create a windows scheduled task, upon installation completion?
Any help would be appreciated!
I need to create an MSI project that checks if certain things are installed on the destination system. If they are, install A happens (without prompting the user), and if they are not, install B happens (again, without prompting).
Is there a tutorial somewhere that will show me this?
I went through the evaluation guide and the example there helped me to get started, but it wasn't enough for what I need atm.
Also, is it possible for the package to create a windows scheduled task, upon installation completion?
Any help would be appreciated!
(4) Replies
‎Aug 17, 2007
11:33 PM
zestym wrote:
Hi all.
I need to create an MSI project that checks if certain things are installed on the destination system. If they are, install A happens (without prompting the user), and if they are not, install B happens (again, without prompting).
Is there a tutorial somewhere that will show me this?
I went through the evaluation guide and the example there helped me to get started, but it wasn't enough for what I need atm.
Also, is it possible for the package to create a windows scheduled task, upon installation completion?
Any help would be appreciated!
You could create conditionals Features (Installscript only project) and use PROPERTY to set the flag based on what you find on destination computer. This way of PROPERTY is set to something then ONLY features satisfying specific conditions will be installed.
HTH
‎Aug 20, 2007
09:06 AM
Have you taken a look at the help for AppSearch action (System Search view) and for conditionally installing features?
In a Basic MSI, you can use AppSearch to set properties if certain things are installed, then condition your features on the presence or absense of those properties.
In a Basic MSI, you can use AppSearch to set properties if certain things are installed, then condition your features on the presence or absense of those properties.
‎Aug 21, 2007
02:23 PM
Thank you for the replies.
I've managed to get closer to my desired goal 🙂
I used the System Search to include 2 searches. The first looks for an .exe file and gets the folder path, the second looks for another .exe file in that same folder path.
How would I install a feature into that folder path ONLY IF BOTH of the .exe files are there? Right now, I have it going to that directory if both are there, and to the directory if the first one is there... and a default if neither are there. However, what I'd like is for nothing to be installed (from the feature) unless BOTH .exe files are in the SAME directory.
I tried doing 2 seperate searches for the two .exe files, storing the folderpaths into ROOT1 and ROOT2 and then using ROOT1=ROOT2 as an install condition, but that didn't work.
I've managed to get closer to my desired goal 🙂
I used the System Search to include 2 searches. The first looks for an .exe file and gets the folder path, the second looks for another .exe file in that same folder path.
How would I install a feature into that folder path ONLY IF BOTH of the .exe files are there? Right now, I have it going to that directory if both are there, and to the directory if the first one is there... and a default if neither are there. However, what I'd like is for nothing to be installed (from the feature) unless BOTH .exe files are in the SAME directory.
I tried doing 2 seperate searches for the two .exe files, storing the folderpaths into ROOT1 and ROOT2 and then using ROOT1=ROOT2 as an install condition, but that didn't work.
‎Aug 23, 2007
05:38 PM
Ok this is slightly more complicated.
I have my install working as desired, except for one more part.
For this feature, I'd like to do the following:
IF a certain file is found:
- stop a service (in other features, i did this through custom actions running batch files)
- rename the file
- install my feature
- start the service
IF a certain file is not found:
- do normal install procedure
The problem is, that file I am looking for may have come from my install, or might have been put there by a user. Either way, I should do the same thing.
Can anyone help?
I have my install working as desired, except for one more part.
For this feature, I'd like to do the following:
IF a certain file is found:
- stop a service (in other features, i did this through custom actions running batch files)
- rename the file
- install my feature
- start the service
IF a certain file is not found:
- do normal install procedure
The problem is, that file I am looking for may have come from my install, or might have been put there by a user. Either way, I should do the same thing.
Can anyone help?