MSI Install

Got a problem you cannot solve? Try here.
SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: MSI Install

Postby SITL » Wed Jan 25, 2017 1:14 am

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
Attachments
SetupPathCapture.GIF
SetupPathCapture.GIF (9.33 KiB) Viewed 4613 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MSI Install

Postby FrancescoT » Wed Jan 25, 2017 2:42 pm

Dear SITL,

this is not an error. The value of the SETUPPATH gets resolved in this way while debugging.

Hope this helps you.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: MSI Install

Postby SITL » Mon Jan 30, 2017 1:18 am

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

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: MSI Install

Postby SITL » Mon Jan 30, 2017 5:44 am

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MSI Install

Postby FrancescoT » Mon Jan 30, 2017 2:47 pm

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: MSI Install

Postby SITL » Tue Jan 31, 2017 2:06 am

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
Attachments
SetupPathCapture.GIF
SetupPathCapture.GIF (9.33 KiB) Viewed 4599 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MSI Install

Postby FrancescoT » Wed Feb 01, 2017 6:51 am

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.
https://www.installaware.com/forums/viewtopic.php?f=2&t=7102&hilit=debugging+compiler+variable

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

SITL
Posts: 116
Joined: Tue Sep 27, 2016 12:31 am

Re: MSI Install

Postby SITL » Fri Feb 03, 2017 5:06 am

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
Attachments
SilentInstallCapture.GIF
SilentInstallCapture.GIF (24.74 KiB) Viewed 4595 times


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 31 guests