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!

aliasmask
Posts: 1
Joined: Mon Feb 18, 2013 12:04 am

Can I create this build

  1. The correct version of java needs to be installed, 1.6_38 32bit for 32bit system, 64bit for 64bit system. This assures the path above will be correct. This is a sticking point because many users don't know what they have. If I can check an environment variable or something else that would be helpful. I wonder if the 64bit version, if installed on a 32bit system installs only the 32 bit files. I've seen that with other install packs. That would simplify things.
  2. I have a set of files I need to install, location chosen by user where default is a folder in My Documents.
  3. There is a text file that needs have the correct path to a specific version of javaw:

    Code: Select all

    JVM=[Drive Letter]\Program Files\Java\jre6\bin\javaw
  4. Finally, I would like to create a shortcut link for one of the .exe files in folder to either the desktop or taskbar (desktop at a minimum).
So, to recap, all that needs to be done is download java (saving path to javaw.exe). Copy files to user folder. Append path to text file in user folder. Create shortcut to exe in user folder.

Any tips or suggestions will helpful. I'm looking for a one click solution and an MSI installer seemed to be the best option. I am open to other solutions though.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Can I create this build

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
1. The correct version of java needs to be installed, 1.6_38 32bit for 32bit system, 64bit for 64bit system. This assures the path above will be correct. This is a sticking point because many users don't know what they have. If I can check an environment variable or something else that would be helpful. I wonder if the 64bit version, if installed on a 32bit system installs only the 32 bit files. I've seen that with other install packs. That would simplify things.
In order to achieve this you can add JRE as a prerequisite to your project. You can use our "Java Runtime Environment" predefined prerequisite package. Also, you should take a look on our "Behavior of 32-bit jre on prepacked in mixed mode installer" thread which could be useful for you.
2. I have a set of files I need to install, location chosen by user where default is a folder in My Documents.
In order to achieve this you can create the related folder under "Application Folder" in "Files and Folders" page and add the above files in it. Then, you should set the "Application Folder" field, from "Install Parameters" page, like this:

Code: Select all

[PersonalFolder]
and make sure that "FolderDlg" dialog, in "Dialogs" page, is added to your project. Also, you can take a look on our "Folder Paths" article.
3. There is a text file that needs have the correct path to a specific version of javaw:

Code: Select all

JVM=[Drive Letter]\Program Files\Java\jre6\bin\javaw
For this you can add a file search (e.g. MY_SEARCH), in "Search" page, which will search for the related file. Then, in "Files and Folders" page you should add a text file update which will use the property (MY_SEARCH) associated to your file search.
4. Finally, I would like to create a shortcut link for one of the .exe files in folder to either the desktop or taskbar (desktop at a minimum).
In order to achieve this you can take a look on our "Creating shortcuts" article.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”