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...
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)
Please log in to answer
Posted by:
bkelly
15 years ago
Posted by:
McRip
15 years ago
Posted by:
anonymous_9363
15 years ago
- 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
- 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
Posted by:
McRip
15 years ago
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
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
Posted by:
McRip
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.