Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

the executable file does not get into the msi #54

Open
LazarenkoA opened this issue Mar 24, 2023 · 3 comments
Open

the executable file does not get into the msi #54

LazarenkoA opened this issue Mar 24, 2023 · 3 comments

Comments

@LazarenkoA
Copy link

LazarenkoA commented Mar 24, 2023

this is part of my wix.json

  "files": {
    "guid": "378896D8-6749-4821-870A-44CBBB791D0C",
    "items": [
      "service.exe"
    ]
  },
  "directories": [
    "assets"
  ]

service.exe located in the same directory as wix.json, there is one text file in the assets subdirectory. I create an msi, then install this msi, in the directory where the installation was made there is a text file from the assets subdirectory, but there is no exe file. I tried to specify an absolute path in json to files, it didn't help

Windows Installer XML Toolset Linker version 3.11.2.4516

@LazarenkoA
Copy link
Author

LazarenkoA commented Mar 24, 2023

also, when you restart the msi, there is no warning that the program is already installed

@LazarenkoA
Copy link
Author

LazarenkoA commented Mar 24, 2023

It was possible to find out what happens if hooks is set. the hook was taken from an example

 "hooks": [
    {
      "command": "sc.exe create HelperApp binPath=\"[INSTALLDIR]service.exe\" type=share start=auto DisplayName=\"HelperApp\"",
      "when": "install"
    },
    {
      "command": "sc.exe start HelperApp",
      "when": "install"
    },
    {
      "command": "sc.exe delete HelperApp",
      "when": "uninstall"
    }
  ]

image

@LazarenkoA
Copy link
Author

it looks like the problem is that I didn't regenerate the guid

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

No branches or pull requests

1 participant