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
- :
- Re: RUn script only during first install and not during patch
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2009
08:49 AM
RUn script only during first install and not during patch
I have a BasicMSI Project.
I have cretaed a patch project of this msi.
Now in the sql server scripts , I want to run only the scripts that are not rum in the first install . How can this be checked?
What condition has to be given in the script condition so that the scripts will run either in the first install or in the patch?
I have cretaed a patch project of this msi.
Now in the sql server scripts , I want to run only the scripts that are not rum in the first install . How can this be checked?
What condition has to be given in the script condition so that the scripts will run either in the first install or in the patch?
(10) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2009
10:50 PM
You may want to try "Not Installed And PATCH".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2009
11:31 PM
I have tried this That is I wrote
Not Installed And PATCH in the script condition but it didnot worked .
Is there anything wrong in the statement or the case of the condition is wrong..
Not Installed And PATCH in the script condition but it didnot worked .
Is there anything wrong in the statement or the case of the condition is wrong..
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 07, 2009
11:52 PM
Not Installed and Not PATCH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 08, 2009
12:24 AM
What will be the condition if i want ot run a script only during patch
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 08, 2009
08:55 AM
Try just "PATCH" and see if it works.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2009
06:54 AM
Thanks , it worked.
I have now a different requirement.
I have sveral scripts in the SQL Scripts and I want to run this scripts in the patch based on centain keys from registry.
That is Suppose I have 10 scripts in the main installer .
I want to run the first 5 scripts in the first run and the rest of the scripts will be run on patch..
That is depending on the keys in the registry , is it possible to provide a condition with to the scripts whether it will be run or not in the patch installer.
Please help...
I have now a different requirement.
I have sveral scripts in the SQL Scripts and I want to run this scripts in the patch based on centain keys from registry.
That is Suppose I have 10 scripts in the main installer .
I want to run the first 5 scripts in the first run and the rest of the scripts will be run on patch..
That is depending on the keys in the registry , is it possible to provide a condition with to the scripts whether it will be run or not in the patch installer.
Please help...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 09, 2009
11:56 AM
You may want to try using a system search that will set the existing value of a registry to a Windows Installer property. You can use the property for the condition of your SQL scripts.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 10, 2009
12:30 AM
Thanks for ur reply...
One more query---
Can I tag the scripts added to the main installer with the registry keys.
That is,
When i addd the scripts I provide some tag in the scripts with the new registry keys or the vice versa that is when an script is run for a particular patch or first time installation , then can i set any value in the script depending on which , I provide condition, so that the script is not run in the next patch??
Please help...
One more query---
Can I tag the scripts added to the main installer with the registry keys.
That is,
When i addd the scripts I provide some tag in the scripts with the new registry keys or the vice versa that is when an script is run for a particular patch or first time installation , then can i set any value in the script depending on which , I provide condition, so that the script is not run in the next patch??
Please help...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 16, 2009
10:19 AM
NamitaB wrote:
Thanks for ur reply...
One more query---
Can I tag the scripts added to the main installer with the registry keys.
That is,
When i addd the scripts I provide some tag in the scripts with the new registry keys or the vice versa that is when an script is run for a particular patch or first time installation , then can i set any value in the script depending on which , I provide condition, so that the script is not run in the next patch??
Please help...
Instead of relying on registry keys and the installer, why not have some kind of version table in your database? Each script would first query the version table and determine what, if any, other code to run.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 24, 2009
03:01 AM
I have used the Schema version and it worked.