Eusebiu wrote:Hi,
I tested again and the "[TempFolder]" property and the %temp% environment variable work correct on my machine. Actually, the properties supported on the "pre-install" stage also resides on the Windows environment variables that are checked by Advanced Installer at the beginning of the installation, they are not Windows Installer properties. So, please make sure that the %temp% variable is defined on your machine.
I attached a project sample that you can extract to the "D:\" drive and see if it works for you.
Best regards,
Eusebiu
Hi Eusebiu,
I have downloaded your "Test pre-install.zip" project and opened it on my test pc with EXACTLY the same results as I have described above for the context sensitive variable properties.
In fact when I tested your "Test pre-install.zip" project, I simply draged and dropped the 'LaunchPaint' prerequesite from "Pre-install" to "Feature-based" and it all started working.
The other issue is that it displayed an error message and would not compile or run due to a missing "dictionary File' "C:\ProgramData\Caphyon\Advanced Installer\Repository\dictionaries\ui_en.ail"
I do not even have that specific folder on my system from the clean install of Advanced Installer. However I do have one in "C:\Program Files (x86)\Caphyon\Advanced Installer 13.5\dictionaries\ui_en.ail", so I copied the whole "dictionaries" folder to the "C:\ProgramData\Caphyon\Advanced Installer\Repository" and re run the project. Everything just worked. So your project command line "[TempFolder]Your Company\Your Application\prerequisites\TestPicture.png" MUST have resolved correctly.
This might be it, could it be so simple as this? So I immediately closed that project and opened my MS SQL Express project, double checked the command lines to be sure it was the same as your supplied project, and ran it expecting it to be all successful. NOPE it FAILD again with the MS SQL Express installation file log (Detail_LandingPage) showing it failed to find the config.ini file in the following path: "Validation for setting 'CONFIGURATIONFILE' failed. Error message: The configuration file 'C:\Users\User1\AppData\Local\Temp\prerequisites\SQLEXPR_x64_ENU\[TempFolder]\prerequisites\2017_SqlInstall_Server.ini' does not exist. Specify a valid configuration file."
I dont believe that running a bat file to launch mspaint and passing it the image to display via a commandline is emulating the same results as a MS SQL Express project. Sure MSPaint appears to accept the path passed but clearly the MS SQL "Setup.exe" (2017.140.1000.169 - Sql Server Setup Bootstrapper) does NOT.
New Clean install of Win8.1x64 pro from MSDN
New clean install of Advanced Installer 13.1 evaluation
Download MS SQL Express 2017 from Microsoft.
Add SQL Express 2017 as a prereq in Advanced Installer and set it as a "Pre-install" using [TempFolder]\prerequisites
Add the config file as a 'Additional file'
Set the 'install Command Line' to "[TempFolder]\prerequisites\config.ini"
Save>Build>Run
You need to compair "apples" with "apples", so I looked at what else I have on the commandline that may be affecting the passing of [TempFolder]. So I removed everything apart from JUST the command to pass the location of the config.ini file. It WORKED, the [TempFolder]\prerequisites\config.ini was resolved! So its something in the other commandlines that DO work with MS SQL Express (as its works with hard coded paths) but NOT in Advanced Installer.
The other commands are "/qs /SAPWD=tHi5$iS@nOt@mY@ReAl!Sa!Pa%%w0Rd!O.1.2.3"(no this is not my real sa password, just an example of the characters used).
Therefore a character in this string if placed BEFORE a Advanced Installer property eg. [TempFolder] is stopping Advanced Installer from resolving or passing the command line to the next process.
I have found this "
http://www.advancedinstaller.com/forums ... hp?t=33417" but that appears to be specific to connecting to an existing SQL Server from AI not Installing and passing commandlines BUT I think they may be related.
If I move the order of the commandline in AI so that the [TempFolder]\prerequisites\config.ini is passed first then followed by the other commandlines it all WORKS as expected.
Is there a list of Reserved or Special characters for Advanced Installer and how or where they can affect the product?

- AI4.jpg (148.54 KiB) Viewed 13012 times

- AI5.jpg (78.54 KiB) Viewed 13012 times

- AI6.jpg (154.3 KiB) Viewed 13012 times
FOLLOW US
Get the latest news in Application Packaging