Changing the name of a installed file and service using prop - 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!

fragilio
Posts: 1
Joined: Wed Apr 18, 2012 10:50 pm

Changing the name of a installed file and service using prop

I have to imagine this is easier than I'm making it but I just can't seem to figure it out, hoping someone on here can guide me down the right path.

I have setup a file that needs to have it's name changed based on a Property value *at install time*. Seems I can set the filename using a property when I'm setting up the installer, ie [|filename].exe. However, if I change the properties (using ORCA or the like) it was my assumption that those changes would flow through when the file is installed. This does not appear to be the case.

Next I was hoping to use the same logic to set the source file for an installed service, again, since it sticks with the initial property value at build time I'm rather stuck.

Anyone done something like this?

-f
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Changing the name of a installed file and service using

Hi and welcome to Advanced Installer forums,

Unfortunately, renaming a file at install time is not supported by Windows Installer. The file name field is pseudo-formatted which means the properties it references will be resolved at build time.

Here's another that debates this issue:
rename file before it's installed
Next I was hoping to use the same logic to set the source file for an installed service
The Service Name field supports formatted references but it is not recommended due to Microsoft Restart Manager limitations.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”