Find a path and store it on property - Advanced Installer Community
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Find a path and store it on property


- I have a package 'eg:A' to install it in the APPDIR.
- But A is a post-install package in the main package.
- while installing the main package i write the path [APPDIR] which user choose after first install, in a registry value so i can later read the path from another package.
- when package 'A' run, it should read the path from the registry key.
- In package 'A' , i did a registry search (RESULT_PROPERTY) to find the path.
- now how can i set the path to a predefined property?
- i define a property MY_PROP , and add a custom action (set property) as follows:
*Property : MY_PROP
*Value : [RESULT_PROPERTY]\subfolder

but when running the installer it gives error : cannot access network location RESULT_PROPERTY or sometimes : cannot access network location subfolder


please your help

Thank you
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Find a path and store it on property

Hi,

I'm not sure why you encounter this problem. Can you make sure that you added the "Set installer property" custom action before the "Wizard Dialogs Stage -> Paths Resolution" action group and see if the problem still appears?

If it still persists, can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Re: Find a path and store it on property

Thank u 4 reply


yes am sure about ordering

and i send now the verbose log and the AIP project to the support.

hope to find a solution

but again :

- all what i need is: this package will publish a web service on IIS , this webservice file located in the path stored in registry value.i need t read this path and publish a webservice on IIS.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Find a path and store it on property

Hi,

I looked over the AIP file that you sent, but I noticed that you added the "Set property" custom action above the "Install Execution Stage -> Paths Resolution" action group. As I mentioned in my previous post, it should be added above the "Wizard Dialogs Stage -> Paths Resolution" action group.

Also, please make sure that the registry entry that it searches for exists, otherwise the search result will be empty and the package installation will fail.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Re: Find a path and store it on property

Ok i did as u told me , but it never works.
it gives
Attachments
temp.png
temp.png (106.35 KiB) Viewed 8955 times
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Re: Find a path and store it on property

OK . i found another solution but also it never works well,

i want to puplish a webservice on IIS
my exe just want to locate the webservice file , which also located behind my exe in the same setup folder,
in IIS page >>
Name: shamel
Folder :MY_PROP


MU_PROP:property, in custome action i add set property like :
Property:MY_PROP
value: [SETUPEXEDIR]shamel

but is doesnt work. and gives the webservice without there subfolders.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Find a path and store it on property

Hi,

Please note that in order to create a property-based folder, you need to follow the steps described in this article.
MU_PROP:property, in custome action i add set property like :
Property:MY_PROP
value: [SETUPEXEDIR]shamel

but is doesnt work. and gives the webservice without there subfolders.
The [SETUPEXEDIR] property that you use here is related to the folder where the installation package is launched from. Do you want to install your files in the folder where your EXE Setup is located?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Re: Find a path and store it on property

NO , my package will publish a webservice on IIS , the web service file is located behind my package in the same folder

Folder : mypackage.exe / shamel_WCFfile

so when i run my package it must publish the webservice debending on files in the the folder shamel_WCFfile

i did a property called MY_PROP and gives it to IIS screen as follows:
Name: Shamel (as example)
Folder:MY_PROP
and did other IIS settings.

also to locate the webservice file i did a custome action :set property like this :
Property: MY_PROP
Value:[SETUPEXEDIR]shamel_WCFfile


but it didn't work ?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Find a path and store it on property

Hi,

Can you please tell me more explicitly what does not work? Do you encounter any error?

Please note that when you assign a folder (e.g. MY_PROP) to an IIS WebSite, the IIS will not copy any file into that folder. If you want some files to be placed in that folder, you should go in the "Files and Folders" page and add there the files that you want to be placed in that folder.

Can you please give me more details about your scenario (maybe exemplify)?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Re: Find a path and store it on property

i solved it
thank you
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Find a path and store it on property

You're welcome. I'm glad you got this working.

Just let us know anytime you need help.

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

Return to “Common Problems”