Visual Studio Application with CMake - Advanced Installer Community
VivRajkumar
Posts: 3
Joined: Wed Aug 20, 2014 6:53 pm

Visual Studio Application with CMake

Heya,

Am not able to start creating the installer for projects generated with CMake.

Attached is a sample that reproduces my issue.

https://www.dropbox.com/s/1uhzmziclqkvv ... taller.rar

Even if you do not have CMake, it's got the build folder with the solution and vcproj files to check and see why the issue occurs.

First Error I got was:
Elevation
Elevation
11.png (13.33 KiB) Viewed 3203 times
Once I opened the solution and had it open, now I receive:
Next
Next
22.png (12.54 KiB) Viewed 3203 times
This is kinda stalling us from being able to try and use Advanced Installer. Any help would be great or even a workaround to get it to not give the errors.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Visual Studio Application with CMake

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Indeed, this seems to be an Advanced Installer import limitation. We'll try to add an improvement in a future version of Advanced Installer, thank you for bringing this to our attention.

Until then, as a workaround, you can use our Advanced Installer extension for Visual Studio. For example, you can open your solution in Visual Studio and add a new Advanced Installer Setup Project to your solution. Then, you can use the [Edit in Advanced Installer] button to edit and configure your installation project in Advanced Installer.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
VivRajkumar
Posts: 3
Joined: Wed Aug 20, 2014 6:53 pm

Re: Visual Studio Application with CMake

Until then, as a workaround, you can use our Advanced Installer extension for Visual Studio. For example, you can open your solution in Visual Studio and add a new Advanced Installer Setup Project to your solution. Then, you can use the [Edit in Advanced Installer] button to edit and configure your installation project in Advanced Installer.
That's a great workaround. Did not know about that. Will definitely try that out, Thanks!!.

In the meantime, I tried to get a "template" project essentially generated via the tool manually and am trying to get cmake from command line to set various Properties that my template project requires. If I could get this going. I'd pretty much be done for my requirement currently.

So essentially I have a few properties defined in my aip project file which I set from command line via http://www.advancedinstaller.com/user-g ... perty.html. This works perfectly fine.

Issue I have is with files in the project. What I'm trying to do is from command line change the source path of a file in the aip project "Files and Folders". I saw the http://www.advancedinstaller.com/user-g ... -file.html but this only helps if the file does not exist in the aip project when I run the command. I cannot do this as my template aip file essentially has references to this file such as say shortcut in Startup folder and usage elsewhere. So I want to keep it in the template aip file but just replace source path from command line.

Next thing I found was http://www.advancedinstaller.com/user-g ... ables.html
This thing really frustrates me as it's literally what I want, I've been looking for this dialog like there's no tomorrow, yet I can't find it. I'm on version 11.4.1 build 58484

My plan was to use a path variable to a folder and get the File in template project use that path variable. I however just cannot find this dialog to create new path variable. If i use the path conversion wizard only thing it does is switch to <WindowsVolume> if in C: else says can't convert at all.

Most annoying part is I can add a path variable from the command line by http://www.advancedinstaller.com/user-g ... iable.html fine. Just can't find this option in the UI. If I could get to that dialog and be able to setup the xml file like how it mentions in the docs, it'd be great (will save me from doing something like having to manually edit the aip file from cmake and change the path's used by the file in xml tags)
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Visual Studio Application with CMake

Hello,

I'm afraid we don't have command line support for editing the source path of a file contained by your installation project. As you already noticed, we only have "add" and "delete" commands for file operations. Maybe we'll add this improvement in a future version of Advanced Installer, thank you for your suggestion.

Regarding our "Path Variables" dialog, this can be accessed by clicking on the "Application Menu ribbon button (positioned in the top left corner) -> Options -> Path Variables menu option".

Let us know if this helped you.

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

Return to “Common Problems”