Re: Rollbacking from custom action
- From: "Phil Wilson" <phil.wilson@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Sep 2006 09:59:01 -0700
In the launch condition stuff there's a search target machine that does a
registry search, that can set a property yo check in the actual launch
conditions. This might help, seaches are described:
http://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/
--
Phil Wilson
[Microsoft MVP Windows Installer]
"Matt" <matt12345@xxxxxxxxxxxxxxxx> wrote in message
news:8E684EEB-AA30-43F8-989A-D25FDAEAADF4@xxxxxxxxxxxxxxxx
Hi Phil,
Second question is clear now but i am not sure about the first one.
I am using Setup wizard of Visual studio 2005 to create an MSI.
Suppose i have an app "Parent", its version will be there in the registry
set by "Parents"'s installer say HKLM\software\Parent . I have deleloped
an
App "Child" which needs Parent of version 5 or later.
Now i have to read the parent's Version from the lauch condition. and have
to abort if the version < 5. How to achive this?
the windows installer allows me to check whether version key is available
in
the registry. but how do i compare the value of version, before
installing.
regards
Matt.
"Phil Wilson" wrote:
I don't know what parent application means exactly, but there won't be a
version key unless that app put it there. There's a search for a Windows
Installer component, that could work if you can identify a component guid
from that parent app and it's an MSI install.
I'm guessing you're doing this with an installer class or an executable.
If
it's an installer class, throw an installexception and add a rollback
custom
action that undoes what you added to the system in your code. If it's an
executable, return a non-zero exit code and similarly clean up with a
rollback custom action or do it in the program before you return.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
"Matt" <matt12345@xxxxxxxxxxxxxxxx> wrote in message
news:CD880C85-C81C-4B7A-B398-A5B058A51A27@xxxxxxxxxxxxxxxx
Hello
I have 2 questions
1. While installing my installtion ahs to check for parent application
version.
It is there in the registry. say HKLM/software/MyApp Version
How to write a launch condition to check the verion greater than 6.0?
2. I have created a dll and have overwritten Install function in the
dll.
In the Install function i create sql server database and tables.
How to abort / rollback if the databse/tablle creation fails.
I am using VS 2005 setup wizard.
regards
Mathew
.
- Follow-Ups:
- Re: Rollbacking from custom action
- From: Matt
- Re: Rollbacking from custom action
- References:
- Re: Rollbacking from custom action
- From: Phil Wilson
- Re: Rollbacking from custom action
- From: Matt
- Re: Rollbacking from custom action
- Prev by Date: Re: NET 2.0 Launch condition
- Next by Date: Re: NET 2.0 Launch condition
- Previous by thread: Re: Rollbacking from custom action
- Next by thread: Re: Rollbacking from custom action
- Index(es):
Relevant Pages
|