Hi and welcome to our forums,
For example, if my program installer was stored like "c:\Downloads\fooInstaller.exe", then after I launch it, I'd have a new registry key with stored "fooInstaller.exe" or "c:\Downloads\fooInstaller.exe" in it.
I'm not quite sure if is possible to achieve what you want.
You can for example save the package name using a property and then store it in the registry, for example like this:
- output.png (20.71 KiB) Viewed 3323 times
But the users can change the name of the file before launching it, thus the value saved in the registry will be the default one.
I was trying to find a solution for you using a PowerShell script, but unfortunately there is no way to determine the filename after the package is launched. You can determine it only when you launch the package using PowerShell. This is unstable because the users can change the location and the name of the file.
I'm not sure if this helps but you can set properties from the command line and then save them in the registry as in the example below:
Code: Select all
fooInstaller.exe PROP1=test.exe PROP2=test
Hope this helps! Please let us know if you have any other questions.
Best regards,
Liviu