cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mmikhail
Level 2

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.
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

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.)
0 Kudos
mmikhail
Level 2

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.
0 Kudos