ans
Posts: 17
Joined: Tue Jul 26, 2011 9:06 pm

Placing source files next to MSI

I went for the Professional license and am having a bit of a frustration currently. For the life of me I can't seem to find out how to place my source files all next to the MSI. They always go into a nested directory structure, but I need them listed flat in the same directory where the MSI is.

Basically the MSI checks a few prerequisites and then copies a custom installer with its custom source files to a subdirectory of the APPDIR (synched folder), where it is launched for further installation (EXE). Sort of "Application unpacks itself".

The source files need to be customized on delivery, wich is why I can't put them into a CAB.

Any idea how I could achieve this?
Thanks in advance.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Placing source files next to MSI

Hi,
They always go into a nested directory structure, but I need them listed flat in the same directory where the MSI is.
This is not supported by Windows Installer. If you place the files next to MSI, they are placed in the folder structure used inside the package.
The source files need to be customized on delivery, wich is why I can't put them into a CAB.
Why do you need all the files next to MSI? You can just use the folder structure to access them. This way you can also handle files with the same name but in different directories.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ans
Posts: 17
Joined: Tue Jul 26, 2011 9:06 pm

Re: Placing source files next to MSI

Hello Cosmin,

thank you for your reply. I need the files next to the msi, because the files need to be custzomized on a server dynamically before the user downloads everything packed in a zip archive.

If there was a command line tool for Linux for unpacking and repacking the AI cabinet, that would be probably also fine. I could hack a shell script that does the customization prior to the download.

Is there a tool for Linux that can pack/unpack the CAB files AI creates?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Placing source files next to MSI

Hi,
I need the files next to the msi, because the files need to be custzomized on a server dynamically before the user downloads everything packed in a zip archive.
I don't see how the nested directories could affect this. Indeed, you would need to use the full folder path to access the files, but it can be done from a script.
If there was a command line tool for Linux for unpacking and repacking the AI cabinet, that would be probably also fine
I'm afraid that I don't understand why you need this. Why is the actual directory structure a problem? Why do you need all your files listed in the same folder? Do you all your files have unique names? Windows doesn't support two files with the same name in the same folder.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”