MSIRmFilesInUSe for modify - 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!

prasoon
Posts: 7
Joined: Thu Feb 21, 2013 6:29 pm

MSIRmFilesInUSe for modify

Hi

If my application is currently running for which i had made the installer and i again open the installer in that case maintenence mode is coming. When i select "repair" option or "remove" option i am getting "msiRmFIlesInUse" dialog box saying my application is running currently, but when i select "Modify" option in maintenece mode in that case i am not getting MsiRmFilesInUse dialoag box, although my application is running.

Please help me in resolving this issue, or do we have any workaround for that
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSIRmFilesInUSe for modify

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Please keep in mind this is the default behavior if the feature of your application is already installed and you select it (in "CustomizeDlg") to be installed. The related dialog will be prompted only if you want to remove your application feature.

However, in order to achieve what you want you can proceed like this:
- Go to "Custom Actions" page and add a "Detect process" custom action without sequence like this:
  • Action Data: myapp.exe
- Go to "Dialogs" page and select "CustomizeDlg" under "Maintenance" tree node.
- On [Next] button add the following two published events:
  • Event: Execute custom action
    Argument: DetectProcess

    Event: Display a specific child dialog
    Argument: <NewDialog>
    Condition: AI_PROCESS_STATE = "Running"
- Please note that the "Display a specific child dialog" event should be added as last item in the "Published Events" list.
- Customize your new created SpawnDialog (under CustomizeDlg) with desired information.
- Build and run your project.

Also, please keep in mind that our "Dialog Editor" feature is available only in an "Enterprise" or higher project type.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasoon
Posts: 7
Joined: Thu Feb 21, 2013 6:29 pm

Re: MSIRmFilesInUSe for modify

Hi

Thanks for the reply. I will surely try the approach told by you.

Actually full part of my question is not answered. I want to show the same "MsiRmFilesInUse" dialog in case of modify also, the reason is the consistency, as i am getting "MsiRmFilesInUse" dialog in case of "Repair" and "Remove" when application is running.

By using custom action i tried to call the "MsiRmFilesInUse" dialog box and i was sucessful in doing that but problem is that, in the list box of "MsiRmFilesInUse" dialog name of the running process is not coming, so it is not able to stop the process.

Please suggest any approach or workaorund
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSIRmFilesInUSe for modify

Hello,

In order to achieve what you want you can try this:
- Go to "Dialogs" page, select "CustomizeDlg" dialogs and on [Next>] button add the following published events:
  • Event: Set reinstall mode
    Argument: ecmus
    Condition: OutOfDiskSpace <> 1

    Event: Reinstall one or more features
    Argument: ApplicationFeature
    Condition: ((OutOfDiskSpace <> 1) AND (!ApplicationFeature = 3) AND ((&ApplicationFeature = -1) OR (&ApplicationFeature = 3)))
- Build and run your project.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
prasoon
Posts: 7
Joined: Thu Feb 21, 2013 6:29 pm

Re: MSIRmFilesInUSe for modify

I have tried the approach that you suggested but it didn't work :(. Please suggest some other way.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: MSIRmFilesInUSe for modify

Hello,

Here's attached a sample, created with version 9.9 of Advanced Installer, which implements a similar scenario. If this doesn't help can you please attach a sample which reproduces the wrong behavior?
sample.zip
(127.93 KiB) Downloaded 387 times
Also, please keep in mind that you should change the "ApplicationFeature" with your feature identifier, from "Organization" page, which contains the components of your application.

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

Return to “Common Problems”