Click here to Skip to main content
11,718,016 members (84,690 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET VS2010 msi .bat
hi,
I use windows server 2008r2 server and iis7

I created an msi installer containing two .net applications.so once the setup is installed it would create two virtual directories in iis from where i would access the applications. For restoring the database of these applications i created a batch file that would trigger a file xxx.sql which contains the restore database commands.I have created the setup in such a way that once installation is done the batch file would be placed in user's desktop so that he can run the file to restore Database.

but i need a solution wherein the batch file should not be manually run by the user. It should also get restored as a part of installation process and right now i am restoring it on my local server. i need to have a wizard in my msi installer that would ask the user for his credentials,name of the server where it should get restored and once user enters these details and clicks next it should restore database onto the server where user has mentioned.

Pls help me out with this problem...
Any help will be appreciated greatly
Thanks in advance
Posted 10-Jan-13 18:20pm
Comments
Sergey Alexandrovich Kryukov at 11-Jan-13 0:24am
   
Unfortunately, all this just makes no sense. You problem is that you are mixing you ideas on what you what to get, with your very naive ideas on how to make it. It makes the question inconsistent. First of all, explain the functionality you want, not mentioning how. Forget about bath files, etc., it would not make any sense anyway...
—SA
joe_j at 11-Jan-13 4:03am
   
how about autostart the batch file after the MSI installation and prompt the user for the credentials?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi there

I suggest you might need to use the post install actions (in Install Shield Limited Edition which comes with the VS 2010). Ask the +The mighty Mister G.+.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 874
1 OriginalGriff 215
2 F-ES Sitecore 210
3 Maciej Los 140
4 Jochen Arndt 120
0 Sergey Alexandrovich Kryukov 1,649
1 OriginalGriff 535
2 Maciej Los 529
3 Richard MacCutchan 440
4 CHill60 415


Advertise | Privacy | Mobile
Web04 | 2.8.150901.1 | Last Updated 11 Jan 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100