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

how to uninstall the old one? #148

Open
grj001 opened this issue Jun 25, 2022 · 2 comments
Open

how to uninstall the old one? #148

grj001 opened this issue Jun 25, 2022 · 2 comments

Comments

@grj001
Copy link

grj001 commented Jun 25, 2022

image

the old one is not uninstall

@grj001
Copy link
Author

grj001 commented Jun 25, 2022

this is the config

async function main() {

  const msiCreator = new MSICreator({
    appUserModelId: 'com.squirrel.luwangcheck',
    appIconPath: path.resolve(__dirname, './public/favicon.ico'),
    appDirectory: 'D:\\Develop\\Document\\BaseProduction\\mapv3d-admin\\luwangcheck5\\out\\luwangcheck5-win32-x64',
    description: 'desc',
    exe: 'luwangcheck5',
    name: 'luwangcheck5',
    cultures: 'zh-cn',
    shortName: "test",
    manufacturer: 'test',
    version: '1.0.0',
    outputDirectory: 'D:\\Develop\\Document\\BaseProduction\\mapv3d-admin\\luwangcheck5\\out\\msi',
    ui: {
      chooseDirectory: true
    },
  });
  const supportBinaries = await msiCreator.create();
  await msiCreator.compile();
}

main().catch(err => {console.log(err)})

@grj001
Copy link
Author

grj001 commented Jun 25, 2022

i add a option upgradeCode

const msiCreator = new MSICreator({
    appUserModelId: 'com.squirrel.luwangcheck5',
    appIconPath: path.resolve(__dirname, './public/favicon.ico'),
    appDirectory: 'D:\\Develop\\Document\\BaseProduction\\mapv3d-admin\\luwangcheck5\\out\\luwangcheck5-win32-x64',
    description: 'desc',
    exe: 'luwangcheck5',
    name: 'luwangcheck5-' + versionNew,
    cultures: 'zh-cn',
    shortName: "test",
    manufacturer: 'test',
    version: versionNew,
    outputDirectory: 'D:\\Develop\\Document\\BaseProduction\\mapv3d-admin\\luwangcheck5\\out\\msi',
    upgradeCode:'11111111-1111-1111-1111-111111111111',
    ui: {
      chooseDirectory: true
    },
  });

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