Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for InternetShortcut element #14

Closed
oleg-shilo opened this issue Jan 28, 2017 · 3 comments
Closed

Support for InternetShortcut element #14

oleg-shilo opened this issue Jan 28, 2017 · 3 comments

Comments

@oleg-shilo
Copy link
Owner

Ported from CP discussion: https://wixsharp.codeplex.com/discussions/660983


wix has some property called internetshortcut

<util:InternetShortcut Id="OnlineDocumentationShortcut"
                        Name="My Online Documentation"
                               Target="http://wixtoolset.org/"/>

is it not available in Wix#?

@oleg-shilo oleg-shilo self-assigned this Jan 28, 2017
oleg-shilo added a commit that referenced this issue Feb 15, 2017
- Issue #14: Support for InternetShortcut element
- Issue #10:*.g.wxs not created in TeamCity build
- Added MSBuild.EmitAutoGenFiles
@oleg-shilo
Copy link
Owner Author

Usage example:

var project = new Project("My Product",
                  new Dir(@"%ProgramFiles%\My Company\My Product",
		      new Dir(@"%ProgramFiles%\My Company\My Product",
                          new InternetShortcut
                          {
                              Name = "Wix# project page",
                              Target = "https://github.com/oleg-shilo/wixsharp"
                          },
                          ...

@RSchwoerer
Copy link
Contributor

Hi @oleg-shilo, do you know of a easy way to use InternetShortcut and make it conditional? What I am looking for is only installing shortcuts (to our help files) if a certain Feature is installed.

It looks like InternetShortcut is different than FileShortcut and does not have Condition.

@oleg-shilo
Copy link
Owner Author

Though it has Feature. This is probably what you are looking for:

var all = new Feature("Complete product");
var project =
    new Project("My Product",
        new Dir(@"%ProgramFiles%\My Company\My Product",
            new InternetShortcut
            {
                Name = "Wix# project page",
                Target = "https://github.com/oleg-shilo/wixsharp",
                Feature = all
            }
            ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants