golf4r
Posts: 11
Joined: Tue Feb 24, 2015 11:56 pm

Forcing lowercase

HI,

I have been able to finish my project with all your good support.

There is only ONE last thing remaining. I want to force the hostname value which is taken from [ComputerName] to be lowercase as it has to be a standard on the servers.

I have not found any option in advanced installer that would permit this kind of operation. Let me know if I am wrong..

I was then looking into imbedding a powershell and pass the value of the ComputerName to it and then lowercase it... but then I am stuck as I cannot find a way to pass the value back to the installer.

Would you have any idea how I could achieve this ?

Thank you again for all the very good support.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Forcing lowercase

Hello,
There is only ONE last thing remaining. I want to force the hostname value which is taken from [ComputerName] to be lowercase as it has to be a standard on the servers.

I have not found any option in advanced installer that would permit this kind of operation. Let me know if I am wrong..
You are right. We don't have any built-in support for this.
I was then looking into imbedding a powershell and pass the value of the ComputerName to it and then lowercase it... but then I am stuck as I cannot find a way to pass the value back to the installer.

Would you have any idea how I could achieve this ?
You can use our "Run Windows PowerShell Script" predefined custom action for this. Please take a look on the getting and setting a property value from the script sections of our custom action help.

If you have any questions or doubts just let us know.

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

Return to “Building Installers”