Re: Rollbacking from custom action

Tech-Archive recommends: Fix windows errors by optimizing your registry



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







.



Relevant Pages

  • Re: office update is unable to check for updates
    ... Windows Installer version 1.0 to Windows Installer version 1.1. ... Here is another post I saw on the forums that seems to have work for other users, but it requires advanced knowledge of the OS, basically registry editing, so please be careful if you try it. ... we need to manually delete all the registry keys for Office. ...
    (microsoft.public.officeupdate)
  • Re: Office unable to update
    ... You installed Office updates in the past and then upgraded from Windows Installer version 1.0 to Windows Installer version 1.1. ... basically registry editing, so please be careful if you try it. ... Delete the following registry keys if they exist: ...
    (microsoft.public.officeupdate)
  • Re: Windows Installer patch files (.MSP files) from previously app
    ... The installer patch never opens for me. ... understand why Microsoft are not addressing this issue. ... delete registry entries is not an acceptable solution. ... If you use Registry Editor ...
    (microsoft.public.officeupdate)
  • RE: Fix for Office repair and Office Updates install fail
    ... This resolves the install problem with the last Office updates. ... Tried the often suggested method of using the Windows Installer Cleanup ... aware that it involves a lot of registry editing, but it did fix ALL of my ... Delete the following registry keys if they exist: ...
    (microsoft.public.windowsupdate)
  • RE: Office Update is unable to check for updates
    ... > basically registry editing, so please be careful if you try it. ... > registry keys for Office. ... If you use Registry Editor ... >> I used the Windows Installer Cleanup Utility as recommended here in the ...
    (microsoft.public.officeupdate)