We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

remove an App installd with MS-VS08-Setup

Hi everyone(using advanced 9.9 on Win7 64 bit, made a msi package for an VS10 Winform Project),
is there any chance to remove a winform-application form add/remove list, wich was installed by an MS-VS08-Setup.
I tried it in that way:
I made a setup msi file with advanced and these are the sttings for those upgradepart

APPLICATION VERSIONS
- allow side by side installs of diffrent product versions
- customize advanced installer upgraqde rules

ORDER
- uninstall older version first...

UPGRADES
here I put in the upgradecode from that VS-Setup-Project and for MIN-Version I gave 1.0.4 and MAX 1.0.9
I guess, I'm not sure here, MIN and MAX are the border for those Productnumber, wich I have to put in "Product Details", is it?
I gave that border cause that VS-Setup has a Setup-Version-Number 1.0.6. This is the number wich is seeable inside of add/remove list

May be here I´m wron and thats the reason for that problem ?

best regards eric
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: remove an App installd with MS-VS08-Setup

Hello Eric,

Please keep in mind that in order to achieve what you want you should disable the "Allow side by side installs of different product versions" option and enable the "Automatically upgrade older product versions" option.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: remove an App installd with MS-VS08-Setup

Hi Daniel,
it could work, it seem so that it doesn't get the new version-number, which is seeable inside of add/remove list(panel control)
It was installd but it has not remove the prevoius version and was showing with the same versionumber as the prevoius has, even I had change it
The assembly-version-number for myApp.exe, inside of "Files and folder" has get it new number, as I gave it .

(something was wrong)
" it has not remove"

best regards Eric
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: remove an App installd with MS-VS08-Setup

Hello Eric,

I'm not sure why you are encountering this behavior. Can you please send us a download link of the related winform-application setup package (which you are trying to remove) to support at advancedinstaller dot com so we can investigate it?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: remove an App installd with MS-VS08-Setup

Hi Daniel,
I'm trying this behavior cause, from the moment when I change my Setup(which still is an setup made with VS08), I need to be sure, that all previous clients, can use the new setup, made with advanced.

I will make a testproject, I hope there will be the same problem, so that I can put it here as attachment, as you wrote

best regards Eric
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: remove an App installd with MS-VS08-Setup

yesterday I put here an answer togehter with an attachment. Was it canceld?
I can send it per email, if those thinks shall not stay here
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: remove an App installd with MS-VS08-Setup

Hello Eric,

I'm not sure why this happened. Maybe the attachment was to large and the reply was rejected. Can you try to post it again? Also, if you can't attach here you can send us a download link for your attachments to support at advancedinstaller dot com.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: remove an App installd with MS-VS08-Setup

Hi Daniel,

here it is agian, but based up an VS10 setup, sorry I've forgotten that I wrote here VS08. But it has the same problem it does not remove those previuos version

best regards eric
Attachments
AdvTest.zip
(561 KiB) Downloaded 557 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: remove an App installd with MS-VS08-Setup

Hello Eric,

Please keep in mind that a per-user installation cannot upgrade a per-machine installation and a per-machine installation cannot upgrade a per-user installation. So, you may encounter the related behavior, when add the upgrade code (of your VS-Setup-Project), if the VS-Setup-Project is install per-user and your current package will be installed per-machine, or vice versa.

However, in order to achieve what you want you can use a custom action. For example you can add a "Launch file or open URL" custom action, scheduled during "Wizard Dialogs Stage", like this:

Code: Select all

msiexec /x {ProductCode}
Also, in order to find the ProductCode of the related installation package you can open it with Orca. Just open the VS-Setup-Project msi with Orca and get the ProductCode property value from "Property" table.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: remove an App installd with MS-VS08-Setup

Hi Daniel, (thanks for watching my example)

I'm a little confused, cause that link "select all" leads me to the begin of these thread.
Well eventhough I tried again, but it does not refuse those previous App.
Maybe there is something to do with your offer "msiexec /x {ProductCode}" but could not find out the meaning

I have not pass what you wrote about "keep in mind..."
But these(Allow side by side...) shall be a way, as you offer me as well in your last answer, or do I missunderstood?

Thanks for recommend about productcode, but so far as I can see, it is not needed. There is even no option to put it.
If I follow and try again, as your link(select all) leeds me.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: remove an App installd with MS-VS08-Setup

Hello Eric,
I'm a little confused, cause that link "select all" leads me to the begin of these thread.
I'm not sure why this happened. It should only select the row under it.
But these(Allow side by side...) shall be a way, as you offer me as well in your last answer, or do I missunderstood?
No, I think you misunderstood.

In order to achieve what you want you can try the following scenario:
- Go to "Custom Actions" page and add a "Launch file or open URL" custom action with sequence, scheduled after "Wizard Dialogs Stage -> Searches" action group, like this:
  • Command: msiexec /x {1F9A498B-7196-4E79-A1FB-3B88338FB267} /qb
- Build and run your project.

Please keep in mind that {1F9A498B-7196-4E79-A1FB-3B88338FB267} is the ProductCode of your SetupAdvTest.msi file. In order to get it you can edit the msi file with Orca.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: remove an App installd with MS-VS08-Setup

I could follow your words ubtil "searches" but after there are no "action groups" I have a description right side "Custom action overview"
I can't find any option to put "Command: msiexec /x {1F9A498B-7196-4E79-A1FB-3B88338FB267} /qb

It's an example of course but there is nothing which could get that line.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: remove an App installd with MS-VS08-Setup

Hello Eric,

Here's attached a sample, created using version 9.9 of Advanced Installer, which implements a similar scenario.
sample.zip
(2.37 KiB) Downloaded 705 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
eric
Posts: 67
Joined: Tue Nov 27, 2012 10:06 pm

Re: remove an App installd with MS-VS08-Setup

Hi Daniel,
I changed my advproject as you showed me in yours, but with my prodoctcode. Just "Dialog Stage Condition" I don't have, instead of "Execution Stage Condition".
So far as I understand it has to be those application-productcode, which shall be installed with adv
( as It is shown in that window "Edit Custom Action Parameters",klick on file) .
But the installation failt. The Message: Another programm is still installing, wait until this installation is finished and than repet.

best regards
eric
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: remove an App installd with MS-VS08-Setup

Hello Eric,

Please keep in mind that the related custom action should be added after "Wizard Dialogs Stage -> Searches" action group in the "Installation Sequence" pane. So, can you add your uninstall custom action after "Wizard Dialogs Stage -> Searches" action group and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”