Page 2 of 2
Re: MSI Install
Posted: Wed Jan 25, 2017 1:14 am
by SITL
FrancescoT wrote:Dear SITL,
I really don't know how did you test the value returned by the SETUPPATH ... but this is the one that can be to detect the outermost folder containing the executable program or setup database that initiated the installation. Supposing of course, that you are running a Single Compressed EXE/MSI.
As you can see by the attached screen-shot, I tried to run "myproject.msi" from the desktop and the SETUPPATH holds the expected desktop path, for the current user context who executed the package.
SETUPPATH.png
Hope this helps you.
Regards
Dear Francesco,
Here is some surprise

Actually with your help, I completed this task related to SETUPPATH, around the time, 29th jan 2016.
I tested and released to QA, everything was fine.
Today when i execute the same code SETUPPATH is $EXEDIR$
and $EXEDIR$ is D:\Program Files (x86)\InstallAware X5
Please see the attachment.
I do not know how to express this shock in words.
It is a big surprise, Need your advice, Hints ? clues ? comments, whatever.
Appreciate your help.
Regards
SITL
Re: MSI Install
Posted: Wed Jan 25, 2017 2:42 pm
by FrancescoT
Dear SITL,
this is not an error. The value of the SETUPPATH gets resolved in this way while debugging.
Hope this helps you.
Re: MSI Install
Posted: Mon Jan 30, 2017 1:18 am
by SITL
Dear Francesco,
Thanks for your reply,
But it's NOT resolving to correct value of MyProduct.msi.
So installation fails. I'm writing all the values to a text file. It's because of SETUPPATH is holding a wrong value.
We had tested it.Now also all features are working except Silent install.
Regards
SITL
Re: MSI Install
Posted: Mon Jan 30, 2017 5:44 am
by SITL
SITL wrote:Dear Francesco,
Thanks for your reply,
But it's NOT resolving to correct value of MyProduct.msi.
So installation fails. I'm writing all the values to a text file. It's because of SETUPPATH is holding a wrong value.
We had tested it.Now also all features are working except Silent install.
Regards
SITL
NOTE:
I think old msi database is not refreshing. Is there anything i should delete and rebuild my project ?
I strongly feel, some old files are not being updated or refreshed.
Re: MSI Install
Posted: Mon Jan 30, 2017 2:47 pm
by FrancescoT
Dear SITL,
honestly, I am not quite sure to follow your problem correctly.
Do you have any chance to post a very VERY minimal project that replicates the issue?
Hope this helps you.
Regards
Re: MSI Install
Posted: Tue Jan 31, 2017 2:06 am
by SITL
Dear Francisco,
Thanks for your reply,
If i create a simple project, that works.
Even my project was working fine, It's is NOT stable,
If i execute the same code SETUPPATH is set to $EXEDIR$
and $EXEDIR$ is D:\Program Files (x86)\InstallAware X5
( you said - this is not an error. The value of the SETUPPATH gets resolved in this way while debugging) .
But it's NOT resolving to correct value of MyProduct.msi.
So installation fails. I'm writing all the values to a text file. It's because of SETUPPATH is holding a wrong value.
(I have .ini file kept in the SETUPPATH, please refer previous postings under this topic)
For your reference I'm again sending the attachment.
Appreciate your help.
Regards
SITL
Re: MSI Install
Posted: Wed Feb 01, 2017 6:51 am
by FrancescoT
Dear SITL,
the screen-shot you posted represents the value of "SETUPPATH" returned by the debugger.
This behavior only happens when debugging a setup inside the IA IDE and it cannot be different. Because in this case, it's the location of IA the debugger returned with the "SETUPPATH" and this corresponds to the directory where the setup gets "forcedly" started when debugging.
So I repeat, if you don't execute your setup from the debugger, the "SETUPPATH" will return the expected value.
To avoid this problem you may define and use a custom COMPILER variable. In this way while debugging, you may conditionally set the values of your SCRIPT VARIABLES to any alternative value and just for debugging purpose.
viewtopic.php?f=2&t=7102&hilit=debuggin ... r+variable
Hope this helps you.
Regards
Re: MSI Install
Posted: Fri Feb 03, 2017 5:06 am
by SITL
Dear Francisco,
Appreciate your comments.
The regular process of installation & uninstallation using user interface is fine.
surprised, silent installation is broken.
Everything was completed & tested one month back.
I couldn't figure out what happened, So i Re- Installed InstallAware X5 and tested.
( I thought some cache or refresh issue, because i have not made any changes.)
Now also, The regular process of installation & uninstallation using user interface is fine.
But Silent installatoin is not happening, I could see {5A...}.exe is running forever in the task manager. & Performance tab shows 100% CPU usage.This is happening after reinstalling InstallAware X5.
See the image as an attachment.
Thanks & Regards
SITL