alf
Posts: 7
Joined: Thu Feb 06, 2020 12:44 pm

Wrong DataDir in silent install

Hello AI-Team,

we build our application with AI, registered Enterprise Edition - I just updated to v17.1.2.
The datadir can be found under "C:\Program Data\[Manufacturer]\[branding name]\" (although the users can change this value).

We're trying to build a solution for unattended updates for our customers.

If I test-update our app with a normal Setup.msi (run with MSIExec) incl. full UI, all works out fine.
All paths - incl. the path to the datadir - are resolved correctly.

But if I use "/passive" or "/quiet" for the MSI install, the datadir is not (!) accessed for the updated data. Instead, a folder named "datadir" can be found under the "program files x86" folder !!! This folder contains the data, which should have been installed in the "C:\Program Data\[Manufacturer]\[branding name]\" folder.

Is this an issue within Advanced Installer, or is it the MSIExec, which has an error when running in unattended modes?

Again, if I run this setup with UI there is no folder problem whatsoever. Only a passive or silent MSI install gives us the wrong data folder.

Regards
Alf
Catalin
Posts: 7606
Joined: Wed Jun 13, 2018 7:49 am

Re: Wrong DataDir in silent install

Hello Alf,

Unfortunately, I can not say for sure why this happens.

In order for me to further investigate this, could you please forward me the following resources:

- a copy of the old .AIP file (the one that is used to build the older version)

- a copy of the new .AIP file (the one that is used to build the newer version)

- a download link for the older version of your setup

- a download link for the newer version of your setup

- a verbose log of the upgrade process

by e-mail at support at advancedinstaller dot com?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alf
Posts: 7
Joined: Thu Feb 06, 2020 12:44 pm

Re: Wrong DataDir in silent install

Hello Catalin,

sent you a mail, did you receive it?

Best regards
Alf
Catalin
Posts: 7606
Joined: Wed Jun 13, 2018 7:49 am

Re: Wrong DataDir in silent install

Hello Alf,

I did indeed receive the resources.

Thank you for providing them.

I have done some tests and I have noticed that the path you have mentioned in the mail is not the same with what I've got after installing the product. I have installed both products with the following command line:

Code: Select all

msiexec /passive /i <path_to_msi>
and in %programdata% there is a folder named "bluesolution". In the folder, there are some NTV and LNG files.

The same folder is created at a first time install and after the upgrade is done.

Should've I installed the first version differently (e.g. with full UI)? Just to be sure I'm doing everything right, could you please forward me a test-case which I can follow in order to reproduce the scenario?

Additionally, please note that I did not receive the log files and the .AIP files. In order for me to have a better view about this, please also forward me the two copies of the .AIP files (the one for the older version and the one for the newer version).

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alf
Posts: 7
Joined: Thu Feb 06, 2020 12:44 pm

Re: Wrong DataDir in silent install

Hello Catalin,

thanks for your time and your investigation.
The LNG and NTV files are language files of our software. The installation path for these is correct, whether passive or not.

What you SHOULD correctly get is a standard (preset) folder with the following data path:
C:\ProgramData\blue solution software GmbH\Meisterbuero

This folder should contain some subfolders like 00000, 00920, update data and some databse files for the demo data.

But in passive installation mode, this data can be (wrongly) found under:
C:\Pgram Files (x86)\blue solution software GmbH\Meisterbuero\DATADIR
So absolutely wrong!!! Because DATADIR is the property name in our isntaller project, which should reference the real data folder:
C:\ProgramData\blue solution software GmbH\Meisterbuero
DATADIR shouldn't ever be a real folder name.

If you do a normal install with UI and don't change the preset folder paths, you should get the correct folders.

You should have received the log files attached to my mail.
Anyway I'll send you the log files and the *.aip files on monday through another mail.

Please be aware that the program files itself do get the correct path. Only the data files get the wrong one.

Again, thanks for you help - kind regards
Alf
Catalin
Posts: 7606
Joined: Wed Jun 13, 2018 7:49 am

Re: Wrong DataDir in silent install

Hello Alf,

Alright. I will be waiting for the .AIP files and will start investigating this once again on Monday.
You should have received the log files attached to my mail.
For some reason, I did not receive the .log files in your last e-mail - the e-mail only contained the GDrive link to the setups.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
alf
Posts: 7
Joined: Thu Feb 06, 2020 12:44 pm

Re: Wrong DataDir in silent install

Hello Catalin,

the mail is on its way.

Best regards - thanks for your help
Alf
Catalin
Posts: 7606
Joined: Wed Jun 13, 2018 7:49 am

Re: Wrong DataDir in silent install

Hello Alf,

I have answered you over the e-mail.

Hope that will be of help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”