I've tried to compile a service with a dependency with MSSQL$SQLEXPRESS service. When I add in MSSQL$SQLEXPRESS in the field labeled "Dependencies on Services and Load Order Groups" the compilation errors during the build with:
Error during build: Unable to compile MSI action install service
When I remove the dependency, there is no error and finishes building. I did try removing the $ character and the build finishes as well so it is my conclusion the $ is the problem. Is there maybe another way to enter the SQL Instance (SQLEXPRESS) as a dependency?
Service Dependency Error On Compilation
-
- Posts: 7
- Joined: Fri Mar 30, 2012 11:40 am
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Service Dependency Error On Compilation
Dear User,
what InstallAware version are you using?
Honestly, I just tried to the same and my project compiles correctly.
Regards
what InstallAware version are you using?
Honestly, I just tried to the same and my project compiles correctly.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 7
- Joined: Fri Mar 30, 2012 11:40 am
Re: Service Dependency Error On Compilation
I am using the Installaware Studio version 15. I've attached the project files. Could be something I'm doing incorrectly. In the project, I have the ASPSync service dependency set to MSSQL$SQLEXPRESS. I get the error when compiling. When I remove it, no errors.
- Attachments
-
- ASPSyncInstaller.zip
- (2.82 MiB) Downloaded 365 times
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Service Dependency Error On Compilation
Dear User,
Ok, I'll verify it.
Regards
Ok, I'll verify it.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Service Dependency Error On Compilation
... ok, I found the same.
Please try with passing a variable with Service name Dependancies.
I used;
Set Variable MYDEP to MSSQL$SQLEXPRESS
... and worked fine.
NOTE.
The command documentation reports that variables are not allowed with "Dependancies" command parameter using Windows Installer.
I will log a note to our dev team, because this seems not true.
Regards
Please try with passing a variable with Service name Dependancies.
I used;
Set Variable MYDEP to MSSQL$SQLEXPRESS
... and worked fine.
NOTE.
The command documentation reports that variables are not allowed with "Dependancies" command parameter using Windows Installer.
I will log a note to our dev team, because this seems not true.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Posts: 7
- Joined: Fri Mar 30, 2012 11:40 am
Re: Service Dependency Error On Compilation
Thank you. I'm not exactly sure how to pass this variable to the service installing. Where exactly did you placed this line?
Set Variable MYDEP to MSSQL$SQLEXPRESS
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Service Dependency Error On Compilation
Dear User,
in your main script code (MSI code view in IA IDE), declare a custom variable just before the "Install Service" command call.
Then use the variable value with "Dependancies" command parameter (the variable must be dereferenced when passed as parameter).
"The syntax for dereferencing a variable in InstallAware is enclosing the variable name between dollar signs. For instance, if the variable is called MYVAR, dereference the variable using $MYVAR$. You may freely combine multiple dereferenced variables in your string literals."
Finally your code should be as below;
Regards
in your main script code (MSI code view in IA IDE), declare a custom variable just before the "Install Service" command call.
Then use the variable value with "Dependancies" command parameter (the variable must be dereferenced when passed as parameter).
"The syntax for dereferencing a variable in InstallAware is enclosing the variable name between dollar signs. For instance, if the variable is called MYVAR, dereference the variable using $MYVAR$. You may freely combine multiple dereferenced variables in your string literals."
Finally your code should be as below;
Code: Select all
Set Variable MYDEP to MSSQL$SQLEXPRESS
Install Service ..\ProjectFiles\ASPSyncService.exe to $TARGETDIR$ as ASPSyncService
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 74 guests