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
- :
- mdf not getting reinstalled
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
‎Jun 24, 2008
03:27 PM
mdf not getting reinstalled
I am kind of new to install shield 2008, but I know some stuff. I have made a msi project that installs my dot net app. That all works great. The problem is when send the update package. I want the project to do a complete uninstall before it does an install. So I change the product version and product code and it seems to do the uninstall just fine. But when it does the install, it doesn't copy the sql server mdf files. It just makes any empty folder. I have written code to stop the services and that seems to work, but still no database.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 24, 2008
06:05 PM
If you create an MSI log file, is there any more information? (Under the Tools menu are tools to help create and interpret an MSI log file.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 25, 2008
01:10 PM
I think i have found a solution. I am stoping the sql server service before anything happens. I was doing it before files were copied, but I guess that isn't good enough. Now I am doing this:
ServiceStopService("mssql$sqlexpress");
LaunchAppAndWait(WINSYSDIR ^ "net.exe", "stop mssql$sqlexpress", LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);
I know I am doing things twice it seems like I need to.
ServiceStopService("mssql$sqlexpress");
LaunchAppAndWait(WINSYSDIR ^ "net.exe", "stop mssql$sqlexpress", LAAW_OPTION_WAIT|LAAW_OPTION_HIDDEN);
I know I am doing things twice it seems like I need to.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)