looking into it - Advanced Installer Community
zolgera
Posts: 2
Joined: Tue Dec 03, 2013 1:20 pm

looking into it

Hello!

I am looking into the Advanced installer and would like to clerify some things:
My prerequesites
- I need to setup a mssql Express instalation
... This seem possable with msi chaining
- run an sql script to setup the initial databases
... Seem possable by running a .Net program
- Some other stuff to setup with a .NET assembly (Write some configuration files, register and start some services, ....)
.... As above don't see a problem with that
- Installer property that contains the directory from where the installer has been launched? ( is this possable by any chance? )
---- Basicly the idea is to have a secondary install folder witch would be by default the location the installer has been run from (could also be a network folder). I need to put some files there like xml and souch and write that to register. This I don't see in the documetation how to make possable. Any suggestion?

Home someone can share some experiance with that.

Best regards
Andrej Žolger
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: looking into it

Hi Andrej and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.
- I need to setup a mssql Express instalation
... This seem possable with msi chaining
The best way to achieve this, is to go in the Prerequisites page and add "SQL Express" as a pre-install prerequisite. For more details you can take a look on the Add Prerequisite tutorial.
- run an sql script to setup the initial databases
... Seem possable by running a .Net program
To achieve this you can use the predefined support available in the SQL Script page.
- Some other stuff to setup with a .NET assembly (Write some configuration files, register and start some services, ....)
.... As above don't see a problem with that
To write some configuration files you can use the Create/Edit XML File feature available in the Files and Folders page, [XML Edit] toolbar button.

To register and start services you can also use the predefined support available in the Services page.
- Installer property that contains the directory from where the installer has been launched? ( is this possable by any chance? )
The directory from where the installer has been launched is stored in the [SETUPEXEDIR] property, so you can use it in your scenario.
---- Basicly the idea is to have a secondary install folder witch would be by default the location the installer has been run from (could also be a network folder). I need to put some files there like xml and souch and write that to register. This I don't see in the documetation how to make possable. Any suggestion?
In order to achieve this you can create a property-based folder and use the [SETUPEXEDIR] property as the folder path.

To write that path to the registry, you can go in the Registry page, create a new registry value and write the [SETUPEXEDIR] property in the "Data" field.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zolgera
Posts: 2
Joined: Tue Dec 03, 2013 1:20 pm

Re: looking into it

Tryed this

I created a property based folder and type in NAME:TEST VALUE:[SETUPEXEDIR] but it seems not to work since when I build and run the installer I get an error:
"The network path [SETUPEXEDIR] not accessable"

I seem to miss verry little since the rest looks like ok

Hope you can help me just whana be sure it works fine before I commit to this

Regards
Andrej
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: looking into it

Hi Andrej,

Sorry for the delayed reply.
I created a property based folder and type in NAME:TEST VALUE:[SETUPEXEDIR] but it seems not to work since when I build and run the installer I get an error:
Are you sure that you followed all the steps required to create a property-based folder as they are described in the article?

As described in the article, you should create a "Set installer property" custom action to set the path for the property-based folder, it is not recommended to assign the [SETUPEXEDIR] property as its value, in the Install Parameters page.

Can you try to use the "Set installer property" custom action and see if it works? Just let us know if you have any question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”