/build/static/layout/Breadcrumb_cap_w.png

Need urgent help - AppSearch

Hallo, I'm a newbie and need urgent help with AppSearch.
I use Wise Installation Studio 7 SP1.
I made my installer with several features. Everything works 100% while installing with Custom Actions and Uninstalling to keep System clean.
I work pretty much with cmdlines to delete files and folders during uninstall. Everything works ok.
The issue. I have a feature called for example 123. But the software is already installed by a third party installer (NSIS). The uninstaller of NSIS is called 123-uninstall.exe.
I want to call the 123-uninstall.exe before installing my features with my installer.
How can I manage this?
For this I really need a step by step, because I never worked with AppSearch and the depending CustomActions for it.

Please help me and thanks in advance...

0 Comments   [ + ] Show comments

Answers (7)

Posted by: bkelly 15 years ago
Red Belt
0
This should get you started: http://itninja.com/blog/view/appdeploy.com->-training-videos->-windows-installer-appsearch-(wise-system-search)
Posted by: McRip 15 years ago
Orange Senior Belt
0
That was very useful. Eveything works. But the problem is how to call the 123-uninstall.exe. I don'know the further steps.
If the user selects the feature 123 for installing then the 123-uninstall.exe must be called to uninstall the version the NSIS Installer installed before?
Posted by: anonymous_9363 15 years ago
Red Belt
0
- Select 'MSI Script' view
- Select the 'Execute Deferred' tab
- Highlight the line beneath the 'InstallInitialize' action
- Double-click the 'If Statement' option in the 'Actions' list
- Assuming the feature is called '123', enter:
NOT Installed AND &123 > 2
Assuming that the property name used to "collect" the result of the AppSearch is called UNINSTALL123 and that it includes the EXE name:
- Double-click the action 'Execute Program From Destination'
- Enter a meaningful name as the action name.
- Use the 'Browse' button to select a directory from the installation. I normally use SystemFolder.
- In the text box 'EXE and Command Line', enter:
[UNINSTALL123]
- Click 'OK'
- Compile
- Test
Posted by: McRip 15 years ago
Orange Senior Belt
0
VBScab. Thanks a lot! Never thought it is that easy. It works great! [:D]
Posted by: McRip 15 years ago
Orange Senior Belt
0
I said it works great but...
if I use the 'Execute Deferred' tab, as you said, the files will get uninstalled after my files got installed. So I did a workaround and now it looks like this:

I changed to the 'Execute Immediate' tab
NOT Installed 123=3 (It's different from yours. Yours doesn't work for me)
Highlight the line beneath the 'InstallInitialize' action
Custom Action Name: 123_UNINSTALL
Working Directory: SystemFolder
EXE and Commandline: [UNINSTALL123] /S (silent uninstall)
Proccessing: Ignore exit code


And this workaround works amazing...

Cheers
Posted by: anonymous_9363 15 years ago
Red Belt
0
NOT Installed 123=3 I presume this is a typo, as it makes no sense like this. Did you mean 'NOT Installed &123=3'?
Posted by: McRip 15 years ago
Orange Senior Belt
0
Sorry for that. Of course I meant 'NOT Installed &123=3'.

And this is working for me and on every machine from Win 2000 up to Win 7.

Cheers
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ