Cleaning powershell script and timing
Posted: Sat Mar 04, 2023 9:41 am
Hello,
I'm a beginner with Actual Installer, I want to clean old installDir folder before installation (without uninstaller) and I want save some file before (only if user doesn't abort installation) so I have a powershell script.
Here is my command:
File: <SystemDir>\cmd.exe
Parameters: /C powershell.exe <SetupTempDir>\cleaningl.ps1 <InstallDir>
<InstallDir> is a parameter to clean the folder before installation.
This does not work, as it only opens the command window.
Does anyone have any idea what the problem is?
Also I have another question: we can't choose as timing, "before installation" "after installation" "at folder select dialog" but I would like to run the command just at the start of the installation (when we know the final installation folder) because it allows to clean up possible files/folder already present if the folder exists. Is this possible ?
Thanks in advance.
I'm a beginner with Actual Installer, I want to clean old installDir folder before installation (without uninstaller) and I want save some file before (only if user doesn't abort installation) so I have a powershell script.
Here is my command:
File: <SystemDir>\cmd.exe
Parameters: /C powershell.exe <SetupTempDir>\cleaningl.ps1 <InstallDir>
<InstallDir> is a parameter to clean the folder before installation.
This does not work, as it only opens the command window.
Does anyone have any idea what the problem is?
Also I have another question: we can't choose as timing, "before installation" "after installation" "at folder select dialog" but I would like to run the command just at the start of the installation (when we know the final installation folder) because it allows to clean up possible files/folder already present if the folder exists. Is this possible ?
Thanks in advance.