Re: VS 2003 Deployment package issues
- From: "Phil Wilson" <pdjwilson@xxxxxxxxxxxxxx>
- Date: Wed, 7 Jun 2006 07:06:38 -0700
On 1, a reboot shouldn't be necessary because MSI broadcasts the "settings
changed" message, so it's a bit odd that your app doesn't pick them up
automatically (although Services behave differently). In general,
ScheduleReboot is what you need, although it's often easier to fix the app
rather than manually edit the MSI file as well as reboot the user.
On 2, that's the way MSI works. It's repair. Whatever tweaks you could use
(like DISABLEADVTSHORTCUTS, but no IDE support in VS setup projects)
ultimately won't be a complete solution because the user can always initiate
a manual repair.
http://ablog.apress.com/?p=868#more-868
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
"Roger Miller" <RogerMiller@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:03420747-A6A6-4F03-B1C5-9715A8F67D6F@xxxxxxxxxxxxxxxx
I have a moderate sized deployment project developed in c#/vs2003 that
works
well but has two lingering issues I haven't figured out.
1) After the MSI is deployed, I would love to reboot automatically. Setup
modifies enviroment variables (amoung other things) so a reboot is
necessary
before my app can run. Is there a way to do this? Or at least a typical
popup saying "Restart required. Restart now? -OK (reboot now) -Cancel
(reboot later)." and kick it off ?
2) After the MSI has been deployed, if any of the deployed files have been
removed manually (yes I know this is bad for various reasons but ...) if
the
main app is launched from a deployed shortcut, the app *knows* that its
files
have been modified and it immediately attempts to reinstall. This usually
fails b/c there is also a deployed service that is installed and already
running. I'm not sure what my ultimate desired behavior is, but I would
like
to understand what's going on and what options I have for
modifying/controlling this behavior.
Thanks,
Roger
Roger
.
- Prev by Date: RE: ReportViewer stops working
- Next by Date: VS 2003, breakpoints and memory errror
- Previous by thread: Re: Team Edition / TFS
- Next by thread: VS 2003, breakpoints and memory errror
- Index(es):
Relevant Pages
|