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: Upgrade Database Script
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
‎Jan 08, 2009
04:35 AM
Upgrade Database Script
Hi,
I got a web setup project deploying a web appllication and couple of SQL scripts to be executed against an SQL Server database (creating user database, tables, procedures, etc.).
I intend to create an upgrade for this website. This is what I did:
1. Update the files to be installed.
2. In the General Information > Product Properties view, increase the version number.
3. Build project.
4. Run the setup.exe, and a message box will appear telling that it will do an upgrade.
5. Click OK, and the new files will be copied to installation folder immediately.
My question is, how can I prompt the user after clicking the OK button to ask them whether they want to upgrade the database (using a script that only executes during Upgrade)? After I click OK, it immediately starts the Upgrade.
Say that I have 5 scripts (script1.sql to script5.sql). Script 1 to 4 will be executed during install but script5.sql will be executed ONLY during Upgrade, and I need to ask the user first before executing script5.
Thanks in advance.
I got a web setup project deploying a web appllication and couple of SQL scripts to be executed against an SQL Server database (creating user database, tables, procedures, etc.).
I intend to create an upgrade for this website. This is what I did:
1. Update the files to be installed.
2. In the General Information > Product Properties view, increase the version number.
3. Build project.
4. Run the setup.exe, and a message box will appear telling that it will do an upgrade.
5. Click OK, and the new files will be copied to installation folder immediately.
My question is, how can I prompt the user after clicking the OK button to ask them whether they want to upgrade the database (using a script that only executes during Upgrade)? After I click OK, it immediately starts the Upgrade.
Say that I have 5 scripts (script1.sql to script5.sql). Script 1 to 4 will be executed during install but script5.sql will be executed ONLY during Upgrade, and I need to ask the user first before executing script5.
Thanks in advance.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 08, 2009
10:47 PM
Bump bump... any advise?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 18, 2009
11:02 AM
pradana,
any solution yet? please share your solution
thnx
any solution yet? please share your solution
thnx
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 15, 2009
04:15 AM
Hi Pradana,
I am also facing the same situation. If you have found any solution please share it.
Regards,
Jignesh
I am also facing the same situation. If you have found any solution please share it.
Regards,
Jignesh