installer

Execute postinstall program with administrator privileges in Inno Setup

末鹿安然 提交于 2020-06-13 07:02:46
问题 I'm trying to run another installer at the end of the installation ( postinstall ). The installer needs administrator provileges. So PrivilegesRequired=admin was added and the error still was there. Error message below: Unable to execute file: C:\Users\User1\AppData\Local\Multi Webcam Video Recorder\webcam.exe CreateProcess failed; code 740. The requested operation requires elevation. #define MyAppName "Multi Webcam Video Recorder" #define MyAppExeName "webcam.exe" [Setup] AppName={#MyAppName

How to change background color of SelectDirBitmapImage and SelectGroupBitmapImage in Inno Setup

╄→尐↘猪︶ㄣ 提交于 2020-06-13 05:52:07
问题 How to change background color of SelectDirBitmapImage and SelectGroupBitmapImage in Inno Setup? 回答1: Hardly. Both those are icons with a transparent background from shell32.dll painted on the TBitmapImage using SelectDirPage.Color and SelectProgramGroupPage.Color long before any use code is triggered. It cannot be updated. You would have to repeat all the painting code in your Pascal Script. It's probably doable, but lot of work. The relevant code is in LoadSelectDirAndGroupImages function:

Replace or customize modal uninstallation windows in Inno Setup

故事扮演 提交于 2020-06-05 05:41:22
问题 Is it possible to replace next uninstalling modal windows with custom modal windows or pages in Inno Setup: 回答1: Both messages are shown always, except for silent (or very silent) uninstallations. What you can do: Change message texts: [Message] ConfirmUninstall=Are you sure you want to completely remove %1 and all of its components? UninstalledAll=%1 was successfully removed from your computer. UninstalledMost=%1 uninstall complete.%n%nSome elements could not be removed. These can be removed

How to change NSIS installer background color based on system color

两盒软妹~` 提交于 2020-06-01 07:32:28
问题 It seems that NSIS has hardcoded the background color to be white. Whenever high contrast is turned on, the background remains white while the text is reverted to white (to comply with high contrast). Is there a way to determine the current system colors and change the background accordingly? 回答1: If you are not using a wizard/header image that depends on the background being white you can simply do !define MUI_BGCOLOR "SYSCLR:Window" !include MUI2.nsh ... in recent versions of NSIS v3. If

Detect and uninstall old version of application in Inno Setup using its version number stored in registry

断了今生、忘了曾经 提交于 2020-05-14 05:19:49
问题 I have an installer that write this line in the Windows registry [Registry] Root: "HKCU"; Subkey: "SOFTWARE\W117GAMER"; ValueType: string; ValueName: "DSVersionL4D2"; ValueData: "{#MyAppVersion}" taking into account that {#MyAppVersion} is defined and written when the program is installed #define MyAppVersion "2.7" I am constantly updating the installer, which is why some people have old installations, and when they update, old files that conflict are combined, so as not to uninstall the

Inno Setup: Do not overwrite settings file, when installing an update

冷暖自知 提交于 2020-04-10 05:26:12
问题 I have created an Inno Setup script for a C++ app. The script works fine and consists of the following: [Files] Source: "C:\Users\john\Desktop\My_App_setup\my_app.exe"; DestDir: "{app}"; \ Flags: ignoreversion Source: "C:\Users\john\Desktop\My_App_setup\settings\*"; DestDir: "{app}\settings"; \ Flags: ignoreversion recursesubdirs createallsubdirs The files are the C++ executable my_app.exe and a settings text file that is customized by the end user. What I'd like to do is when I have an new

How to create installer for mac software

最后都变了- 提交于 2020-03-25 04:11:16
问题 I've created software using Filemaker and I have to create an installer. I already done it for Windows but I have to create one for Mac too. The installer will be able to install the software, install a font and ask the serial number. Can someone help me? 回答1: I think Apple used to (still does?) offer a program with Xcode that was called PackageMaker, but I don't think they still do. It might be available from a previous version of Xcode. I found surprisingly little information about it

Inno Setup: Close installer wizard if file exists in the program's folder

左心房为你撑大大i 提交于 2020-03-15 07:35:59
问题 I am trying to create an installer that is a Demo installer that if it detects the file close.txt in the programs folder then it closes the wizard or aborts install. I am running a scheduled task that automatically uninstalls the app after two days. On initial install the close.txt file gets installed in the programs folder then after auto uninstall the close.txt file is left in the programs folder. I would like for when you re run the installer it checks for this file and if it is found to

使用 build-simple-cdd 快速定制 Debian 安装盘

老子叫甜甜 提交于 2020-03-04 23:40:41
官方推荐了 build-simple-cdd 来 定制Debian安装盘 。 sudo apt-get -y install simple-cdd xorriso 创建基础目录和文件: # 使用普通用户即可,jessie-iso为光盘根目录 # profiles 为配置文件目录,custom-deb 为定制包目录,extra-file 里的文件会拷贝到光盘的 simple-cdd 目录下。 mkdir -pv ~/jessie-iso/{profiles,custom-deb,extra-file} dpkg -l |awk '/^[hi]i/{print $2}' | awk -F':' '{print $1}' > ~/jessie-iso/profiles/bilibili.packages # 会默认使用基础配置文件: /usr/share/simple-cdd/profiles/ ls ~/jessie-iso/profiles/ # 添加额外定制配置 bilibili.conf # build-simple-cdd 主配置文件 bilibili.downloads # 指定要下载到光盘里的安装包 bilibili.packages # 指定将被安装的包 bilibili.preseed # 执行的自动安装脚本 下载安装包、生成光盘目录数据,大功告成: build

What is the best way for a website to check if a user has installed a client app?

China☆狼群 提交于 2020-02-25 03:36:44
问题 Let's say I've got a website that works better if a client has installed and logged into a desktop application. I'd like to be able to do 2 things: Alter the website if they haven't installed the app (to make it easy for them to find a link to the installer) If they've installed the app on a couple of machines, determine which machine they are browsing from I'd like something that works on Windows and OSX, on any of the major browsers. Linux is a bonus. A few thoughts: Websites can detect if