Skip to content

Help running a script before InstallFile #15

Description

@ekr-adb

I wrote a ps script to locate a very old version of our product that use the upgrade id in wrong way, and cannot be automatically removed via msi installation upgrade.
I need to run that script before any other operation, or at least before InstallFiles.
What I tried:
<InstallExecuteSequence>
<Custom Action="PowerShellScriptsDeferred" Before="InstallFiles">NOT Installed</Custom>
<RemoveExistingProducts Before="InstallInitialize" />
</InstallExecuteSequence>
<powershell:Script Id="Uninstall_2.5.7" Elevated="yes">
<![CDATA[
...
my script
...
]]>
</powershell:Script>
But I get the script running after all files have been installed.
How can I do that? Is it possible?

Thank you.
Alberto

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions