Coder Social home page Coder Social logo

wixpackage's People

Contributors

dg-wangtao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

wixpackage's Issues

判断framework版本并下载安装

尝试用了你提到的判断framework版本并下载安装章节,发现没有作用,用你的代码也是一样,现象是判断了framework版本,但并未进行安装。不知道你是否进行过验证?能想到的区别就是用的3.11版本得wix,不知道是否跟这个有关。

360和金山报新增开机启动项

尝试用了你的示例安装包“格灵深瞳”,也存在电脑安装有360和金山软件时,报新增启动项导致引发用户误解,请问如何解决?跟金山安全工程师沟通后,他说软件确实添加了启动项,只不过很快又删除了启动项。我在代码中也没有找到添加启动项的逻辑,因此不知如何解决这个问题,因为用户担心有病毒风险,虽然实际并没有。
QQ截图20210816182352
image

我想在WIX里加个管理员权限读写注册表,该怎么写















</Directory>

<!--put files to set up-->
<Feature Id="ProductFeature" Title="!(loc.Title)" Level="1">
  <ComponentGroupRef Id="ProductComponents" />
  <ComponentGroupRef Id="RegistryComponents" />
  <ComponentRef Id="ApplicationShortcutMenu" />
  <ComponentRef Id="ApplicationShortcutDeskTop" />
  <ComponentRef Id="CMP_WriteToRegistry" />
</Feature>
  <Component Id="ProductComponent" Directory="INSTALLFOLDER" Guid="84D3BAE6-2758-4FBD-9714-1E052A066830">
    <File Source="$(var.helloworld.TargetPath)" Id="myapplication.exe" KeyPath="yes"></File>
  </Component>

</ComponentGroup>

<!--Registry-->
<ComponentGroup Id="RegistryComponents" Directory="INSTALLFOLDER">

  <Component Id="CMP_WriteToRegistry"
             Guid="1ECA3238-1B7B-4818-9A02-FAD3D6773613">
    <RegistryKey Action="create" Id="AutoStarKey" Root="HKLM" Key="Software\Microsoft\111">
      <RegistryValue Id="autoStarKeyValue" Name="!(loc.ProductName)"  Type="string" Value="hellowworld.exe" />
    </RegistryKey>
    <!--<RegistryValue Id="RegistryValue"
                   KeyPath="yes"
                   Action="write"
                   Root="HKLM"
                   Key="Software\Microsoft\!(loc.CompanyName)\!(loc.RegistryName)"
                   Name="!(loc.ProductName)"
                   Value="!(loc.ProductName)"
                   Type="string" />-->

  </Component>

</ComponentGroup>

<!--Shortcut on Desktop-->
<DirectoryRef Id="DesktopFolder">
  <Component Id="ApplicationShortcutDeskTop">
    <Condition>
      <![CDATA[CREATESHORTCUTDESKTOP="True"]]>
    </Condition>
    <Shortcut Id="ApplicationDeskTopShortcut"
           Name="!(loc.ProductName)"
           Description="!(loc.Title)"
           Target="[#myapplication.exe]" Icon="icon"
           WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
    <RemoveFolder Id="DesktopFolder" On="uninstall"/>
    <RegistryValue
        Root="HKCU"
        Key="Software\Microsoft\!(loc.CompanyName)\!(loc.RegistryName)"
        Name="installed"
        Type="integer"
        Value="1"
        KeyPath="yes"/>
  </Component>
</DirectoryRef>

<!--Shortcut in startmenu-->
<DirectoryRef Id="AppStartMenuFolder">
  <Component Id="ApplicationShortcutMenu" Guid="5AE52100-3B6E-4BA7-8A87-ED50F790B316">
    <Shortcut Id="ApplicationStartMenuShortcut"
              Name="!(loc.ProductName)"
              Description="!(loc.Title)"
              Target="[#myapplication.exe]" Icon="icon"
              WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
    <RemoveFolder Id="CleanUpShortCut" Directory="AppStartMenuFolder" On="uninstall"/>
    <RegistryValue Root="HKCU" Key="Software\Microsoft\!(loc.CompanyName)\!(loc.RegistryName)"
                   Name="installed" Type="integer" Value="1" KeyPath="yes"/>
  </Component>
</DirectoryRef>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.