Run and Uninstall Error - Advanced Installer Community

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!

invisacc
Posts: 4
Joined: Wed Nov 16, 2011 11:04 am

Run and Uninstall Error

Hello everybody

Advanced Installer isnt working anymore, i dont know why. I receive following message, when i try to run the project OR try to uninstall the progam. In both cases i got the same error:

"The File <<programname.exe>> is not marked for installation."
I tried to remove all dependencies in the project for this exe-file. Dont work. I removed all directories on the system and tried again, to uninstall the program. Dont work.

In the last installation, i dont selected the feature, which runs the programname.exe. After this installation, the problems began.

Thanks a lot for some help.

Kind regards.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Run and Uninstall Error

Hello and welcome to Advanced Installer forums,

Usually this message is given by Windows Installer when a custom action is trying to access a file from the package which was not installed. In your exact case that file is "programname.exe".

Do you have any custom actions that could suit this scenario?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invisacc
Posts: 4
Joined: Wed Nov 16, 2011 11:04 am

Re: Run and Uninstall Error

Yes, Programm.exe is a custom action. I have more custom actions. I dont selected some more in the last install. But the error is coming only for this specific custom action/Programm.exe
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Run and Uninstall Error

Hi,

What probably happens is that you try to call the custom action before all the files are installed. Probably you've add it the EXE as a "New installed custom action", can you please delete it and instead add a "New attached custom action"?

Adding it as attached should make the file available all the time during install and uninstall process, not depending on the files installed by the package.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
invisacc
Posts: 4
Joined: Wed Nov 16, 2011 11:04 am

Re: Run and Uninstall Error

Thank you for your answer, but your solution doesnt work.

I try to explain it better:
Even when i delete all custom actions, which were responsible for exactly this program.exe, the error occurs, when i run AV:

<<The File "program.exe" is not marked for installation.>>

After that, another window with following error appears:

<<Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel.>>

If i try to remove the program from the windows control panel (windows explorer -> Unsinstall or change a program), i got the same message like above <<The File "program.exe" is not marked for installation.>>
invisacc
Posts: 4
Joined: Wed Nov 16, 2011 11:04 am

Re: Run and Uninstall Error

I resolved it.

First i removed the installed program in windows with the msizap.exe, like you said it here:
http://www.advancedinstaller.com/user-g ... stall.html

After that, i attached following execution condition to my custom action:
!<<Feature>> = 3

In the Feature is my Program.exe. Now the uninstall-wizard first checks, if the feature, which is "responsible" for the Program.exe, is installed or not. If the feature isnt installed, the custom action will not peform.

Dont know, how this problem came exactly. Before it came, anything worked fine. Hope, with this solution i helped some other, who ran in the same problem.

Thank you for your solutions.

Kind regards

Return to “Common Problems”