简体   繁体   English

尝试设置部署程序包以静默卸载Notepad ++和安装新版本

[英]Trying to set up a deployment package for silent uninstall of Notepad++ and installation of a new version

All of the below on Windows 7 Machines and regarding Notepad++ installation / uninstallation: Windows 7计算机上以下所有有关Notepad ++的安装/卸载:

Uninstaller 解除安装程式

When I try to uninstall using the command 当我尝试使用以下命令进行卸载时

if exist "C:\\Program Files (x86)\\Notepad++\\uninstall.exe" "C:\\Program Files (x86)\\Notepad++\\uninstall.exe" /S

there are some files left in the Notepad++ file afterward. 之后,Notepad ++文件中还有一些文件。 Notepad++'s uninstaller, when run manually, prompts halfway through the uninstall asking "Do you want to keep your custom settings" and I'm thinking that the command may be choosing to answer this "Yes" by default. Notepad ++的卸载程序在手动运行时,会在卸载过程中提示您“是否要保留自定义设置”,并且我认为该命令可能默认选择回答“是”。 I'm wondering if there's an easy way to have it choose "No" here instead. 我想知道是否有一种简单的方法让它在这里选择“否”。 If not, I can probably just delete the folder. 如果没有,我可能可以删除该文件夹。

Installer 安装程序

I'm running the installation using the 32 bit default .exe file from Notepad++ in a deployment package compiled in Lansweeper. 我正在使用Lansweeper中编译的部署程序包中的Notepad ++中的32位默认.exe文件运行安装。 What I'm noticing is that presently, the package executed the CMD uninstall command, but stops short of installing the new version. 我要注意的是,目前,该软件包执行了CMD卸载命令,但没有安装新版本。 For reference, I've been using an installed 7.3.2 and the installer for 7.3.3 to test, so that it should uninstall the 7.3.2 and install 7.3.3 by the end of the package. 作为参考,我一直在使用已安装的7.3.2和用于7.3.3的安装程序进行测试,因此它应该卸载7.3.2并在软件包末尾安装7.3.3。

I'm wondering if the fact that there are a number of options in the Notepad++ installer could be the culprit here. 我想知道在Notepad ++安装程序中有很多选项的事实是否是这里的罪魁祸首。 If it is better to install via command line or to include some sort of configuration file I'm fine with either option, just not especially well-versed in doing them. 如果最好是通过命令行安装或包含某种配置文件,那么我可以选择其中任何一种,只是不精通它们。

Notepad++ Installer requests the following during installation: Notepad ++安装程序在安装过程中要求以下内容:

  1. Select a language - should choose English 选择一种语言-应该选择英语
  2. Choose Components - want to be able to customize selection of localization / auto complete / themes / context menu / plugins / auto update according to our requirements 选择组件-希望能够根据我们的要求自定义本地化选择/自动完成/主题/上下文菜单/插件/自动更新
  3. Choose Components - Don't use Appdata, Allow Plugins to be loaded from Appdata, and Create Shortcut on Desktop should all remain unchecked 选择组件-不使用Appdata,允许从Appdata加载插件,以及在桌面上创建快捷方式都应保持未选中状态
  4. Run Notepad ++ - should be unchecked (checked by default) 运行记事本++-应取消选中(默认选中)

All the other components that I can see are straightforward Next / I Agree buttons. 我可以看到的所有其他组件都是简单的“下一步/我同意”按钮。

I'm hoping someone may be able to make helpful suggestions here as I've not had any experience with configuring silent installs with specific parameters. 我希望有人可以在这里提出有用的建议,因为我没有使用特定参数配置静默安装的经验。 Notepad++ doesn't seem to have its own MSI and I won't use a third party one so some sort of batch or configuration file or flagging options in cmd if possible are the preferable options. Notepad ++似乎没有自己的MSI,因此我不会使用第三方的MSI,因此,如果可能的话,最好在cmd中使用某种批处理或配置文件或标记选项。

Please let me know if there's any additional information I can provide that may be helpful. 请让我知道我是否可以提供其他任何有用的信息。

Thank you in advance. 先感谢您。

If you just need to update to the latest version. 如果您只需要更新到最新版本。 It is quite simple. 这很简单。 Run the newest installer again and it will automatically update older versions. 再次运行最新的安装程序,它将自动更新较旧的版本。

See Silent Install Notepad++ 请参阅静默安装记事本++

I'm using the command: 我正在使用以下命令:

start /wait npp.7.2.Installer.x64.exe /S

Didn't show any interface during silent installation. 静默安装期间未显示任何界面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM