Bug: Extract Location overwritten - 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!

wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Bug: Extract Location overwritten

Under -> Media-> Bootstrapper tab

check Sign and check inegrity using MD5
check do not delete extracted files
Set Extract Location to [CommonAppDataFolder]\Install\Cache\[|ProductName]

toggle Radio button "Leave install files outside"/"Include install files in EXE"

Extract Location Changes to:
[AppDataFolder][|Manufacturer]\[|ProductName] [|ProductVersion]\install

This also happens randomly when you hit save with this tab open. but I cannnot get it to happen consistently.

This has been happening for some time but hasn't been an issue until Server 2008 throws an error because of the Default value is an invalid location.
Attachments
Inaccessable Path Server 2008
Inaccessable Path Server 2008
Server2008Error.jpg (21.17 KiB) Viewed 13740 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Bug: Extract Location overwritten

Hi,
toggle Radio button "Leave install files outside"/"Include install files in EXE"

Extract Location Changes to:
[AppDataFolder][|Manufacturer]\[|ProductName] [|ProductVersion]\install
This is the normal behavior. The extract location is reset to a recommended default when changing the bootstrapper file management. As a side-note, CommonAppDataFolder is not a recommended extract location because it requires Administrator privileges.
This also happens randomly when you hit save with this tab open. but I cannnot get it to happen consistently.
Unfortunately we are unable to reproduce this behavior on our test machines. Are you using the latest Advanced Installer version? Also, let us know if you find a way to reproduce it constantly.
This has been happening for some time but hasn't been an issue until Server 2008 throws an error because of the Default value is an invalid location.
It looks like the installation process somehow runs under the system account. How are you launching the installation? Also, what execution level does your bootstrapper use?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

Yes, CommonAppData does require administrator, but so does the install as a multi-user program (Require Administrator is checked). However, the extract path displayed in the Error message picture will not allow anybody but SYSTEM to run from.

While looking for a work around, I have found that the "Extract Location" is not saved at all.

1. To prove this create new professional aip
2. Media->Media Tab -> select Archive ... LZMA....
3. Bootstrapper Tab Sign and check ....
4. Change Extract Location
5. Save
6. Close AIP
7 Open .Aip Location changed back.
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

Since the save function on this field is omitted, it can be changed in the aip file itself. I have done this.

I think if you attempt to do an install on Server 2008, you will find that the default path will not work, It is far more important that a path that works for this OS is used than it is to have the save function on that field since many users will never actually change it.

C:\Windows\System32\config\systemprofile\AppData\Roaming\.... seems like a really bad idea. Actually anything containing System32 that doesn't involve drivers, seems like a bad idea.
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

I am using 8.5 I am in the middle of a release and have not loaded 8.6 yet.

Here is an empty project to show the problem.
Attachments
prove.aip
Empty Project to show Extract Location problem.
(11.53 KiB) Downloaded 554 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Bug: Extract Location overwritten

Hi,

This behavior is caused by a bug in Advanced Installer. Thank you for bringing it to our attention. A bugfix will be included in a future version.
I think if you attempt to do an install on Server 2008, you will find that the default path will not work,
I'm not sure what is causing this problem. AppDataFolder should be resolved to the user profile AppData, not to a location in system32. Can you please try deleting the extraction folder manually from your AIP file? This way the current user Temp folder will be used.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

Thanks for the suggestion, Cosmin. At present, we do require our software to be installed by an administrator. I also use the extracted files as well as an XML generated by the installation log to check the state of the machine if our customers have problems. That is why I have all the logs/cache stored in a specific central location.

So the CommonAppDataFolder has been working well for me. I had just forgotten how I updated that field in the past (direct edit).

Thanks for your help,

George
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

I noticed this bug was fixed in 8.6. The application now saves the "MSI Command Line"settings in the project.

However, it now ignores the command line altogether. I am no longer receiving a log file as I have directed by switch "/L*v"

I am including a new project with only one file that displays this problem:
NoLog.aip
MSI Command line ignored
(9.87 KiB) Downloaded 794 times
I am likely going to have to revert back to 8.5 to get this functionality back as it is required that the installation produce a log file.

g
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Bug: Extract Location overwritten

Hi George,

Can you please try the following value for the commaind line field:

Code: Select all

/L*V "[TempFolder]Install.log"
Maybe the log creation was failing because you were trying to create it directly on C drive, and usually from Vista onwards elevation is
required to write directly on the OS partition.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

Bogan,

We do not support Vista. We do support Win7. Obviously, the aip I sent you is not any real product. It is a project that simulates the bug I have uncovered as a result of the fix that was placed on saving the MSI Command line. Before I even wrote this thing up, I was working on XP64 to avoid any problem associated with the increased security of Win7. If you had taken the time to try your suggestion on 8.6, you would have seen that it does NOT work.

Because of this delay, I have no choice now but to revert back to 8.5 or remove logging since MSI Command line IS broke in 8.6.

I am very disappointed in the effort that was put forth on this matter.
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

Fortunately, I have found that the changes made between 8.5 and 8.6 to have no effect on the structure of the aip. I was able to change the version number within my existing files and get my install back. This is good news for all of us. If I had to delay the release of this software due to this bug, I would have taken the heat for insisting on using Advanced Installer. (and yes, MSI Command line is working in 8.5)

Your service is still way ahead of the competition. Had Cosmin, received this bug, it would have been addressed and I am certain, I would have been told to revert if a fix could not have been made. I suspect it is a five minute fix since it obviously has to do with the save bug on MSI CommandLine that was addressed in 8.6.

I will be watching for a fix to this problem in the next version of AI.

Thanks,

George
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Bug: Extract Location overwritten

Hi George,

I'm afraid we cannot reproduce the problem with the ignored command line, using version 8.6 of Advanced Installer. The log was successfully created on our machines.

The content of this field is ignored at run-time only if the EXE setup is launched with another command line for the MSI, in this case the latter one has priority.

Also, our release notes do not mention anything about fixing a problem related to the field "MSI Command line" in the last releases, was this bug acknowledged by me or one of my colleagues previously?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

In version 8.5, changing the MSI Command line text box would have no effect on the aip.

In Version 8.6, changing the text box DOES update the aip, but the command line does not run as part of the bootstrap.

The aip I sent you, is the simplest version I could come up with that reproduces the problem.

The Install is created on A win7 x64 Professional machine and Installed on a XP64 Professional Machine.

Run it from the commandline instead of running setup directly and add the /L*v "C:\Documents and Settings\All Users\Application Data\Install.log"
(Yes, I know it requires administrator, my entire install does as it contains about a dozen prereqs that dwarf the main product).

It does work, but it is not included as part of the bootstrapper itself. 8.5 is working all I have to do with 8.5 is change the path in the aip with my XML editor.

I have uninstalled 8.6, so I am unable to troubleshoot this any further.

Here is the install I actually have, even though I think it would be much easier to troubleshoot it with the NoLog.aip I sent you since it is so much smaller and simpler.
FocalSetup8.6.aip
Full Install
(261.94 KiB) Downloaded 641 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Bug: Extract Location overwritten

I deleted your prerequisites from the project file and was able to build it using dummy files, in our debug version of Advanced Installer.

Upon running the package the log was generated in the path you've specified in Bootstrapper view. I tested the package on my development machine, Win 7 x64.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wyzerd
Posts: 75
Joined: Tue Mar 27, 2007 3:54 am
Location: St. Louis, MO
Contact: Website

Re: Bug: Extract Location overwritten

I don't know why it is working for you. I will load it again after the release I am doing is finished. But it would not produce a log file on any installation built using 8.6 and 1 in 20 would produce error "Invalid Commandline" error. Many of the prereqs were in 8.5 or earlier and they did produce log files in that same directory.

We can consider this resolved at the moment since I have no time nor resources to further troubleshoot the issue. I will get back to this when I have more time.

Thanks!

Return to “Common Problems”