installation

Write serial number to file using Inno Setup

泄露秘密 提交于 2020-12-31 10:42:59
问题 I am trying to get the following Inno Setup code to work: [Setup] UserInfoPage=yes [Code] function CheckSerial(Serial: String): Boolean; begin Result := true; SaveStringToFile('c:\Registration.txt', Serial, False); end; The code is extremely simple when the file path is known at UserInfoPage . However it becomes extraordinarily complex when I need to write this file next to my application. Neither: WizardDirValue(); nor ExpandConstant('{app}'); do work. The first one is empty when called too

pytables installation failed

社会主义新天地 提交于 2020-12-31 04:34:31
问题 I do: sudo pip install --upgrade tables I get: /usr/bin/ld: cannot find -lhdf5 collect2: ld returned 1 exit status .. ERROR:: Could not find a local HDF5 installation. You may need to explicitly state where your local HDF5 headers and library can be found by setting the ``HDF5_DIR`` environment variable or by using the ``--hdf5`` command-line option. Complete output from command python setup.py egg_info: /usr/bin/ld: cannot find -lhdf5 however: $ echo $HDF5_DIR /opt/hdf5/ $ ls /opt/hdf5/ bin

How to run a PowerShell Script after Inno Setup installer

依然范特西╮ 提交于 2020-12-30 01:34:36
问题 I have a PowerShell script that modifies some preference files that I'm trying to have run after my Inno Setup installer is completed. Haven't found a working solution for this yet. My goal is to embed this in the file, or code, so I don't have to ship multiple files, just the installer. Thanks! 回答1: To execute a command after an installation finishes, add an entry to [Run] section. If the PowerShell code is trivial, you can executed it without any script file directly from PowerShell command

How to create a shortcut in startmenu using setuptools windows installer

喜你入骨 提交于 2020-12-29 06:37:14
问题 I want to create a start menu or Desktop shortcut for my Python windows installer package. I am trying to follow https://docs.python.org/3.4/distutils/builtdist.html#the-postinstallation-script Here is my script; import sys from os.path import dirname, join, expanduser pyw_executable = sys.executable.replace('python.exe','pythonw.exe') script_file = join(dirname(pyw_executable), 'Scripts', 'tklsystem-script.py') w_dir = expanduser(join('~','lsf_files')) print(sys.argv) if sys.argv[1] == '

How can I change the apt-get install directory

孤街醉人 提交于 2020-12-29 03:11:28
问题 The default install directory of apt-get is /opt. Can I change it to another directory? 回答1: Best way I can think of is to use a symbolic link note that not all programmes are installed to the same directory and /opt may not be the best thing to move. (see end for example of moving only one folder/program) This is what I did with EasyPeasy (Ubuntu 10.04) Follow this code carefully some of the commands can delete important files if used incorrectly. First you need to make sure /opt (or your

How can I change the apt-get install directory

江枫思渺然 提交于 2020-12-29 03:09:06
问题 The default install directory of apt-get is /opt. Can I change it to another directory? 回答1: Best way I can think of is to use a symbolic link note that not all programmes are installed to the same directory and /opt may not be the best thing to move. (see end for example of moving only one folder/program) This is what I did with EasyPeasy (Ubuntu 10.04) Follow this code carefully some of the commands can delete important files if used incorrectly. First you need to make sure /opt (or your

How can I change the apt-get install directory

烈酒焚心 提交于 2020-12-29 03:08:19
问题 The default install directory of apt-get is /opt. Can I change it to another directory? 回答1: Best way I can think of is to use a symbolic link note that not all programmes are installed to the same directory and /opt may not be the best thing to move. (see end for example of moving only one folder/program) This is what I did with EasyPeasy (Ubuntu 10.04) Follow this code carefully some of the commands can delete important files if used incorrectly. First you need to make sure /opt (or your

Disable MSI auto-repair on installed program

瘦欲@ 提交于 2020-12-23 13:40:30
问题 I've seen tons of people post about this issue but have yet to find a solution. I have a program that every once and a while will have an issue where the windows installer tries to repair the program, but it doesn't actually do anything, it just hangs. I checked the Windows event log and the file it says is missing is not missing. Sometimes rebooting fixes it. How can I disable the self repair completely on a program that's already installed without removing it completely from the registry?

Disable MSI auto-repair on installed program

心不动则不痛 提交于 2020-12-23 13:38:17
问题 I've seen tons of people post about this issue but have yet to find a solution. I have a program that every once and a while will have an issue where the windows installer tries to repair the program, but it doesn't actually do anything, it just hangs. I checked the Windows event log and the file it says is missing is not missing. Sometimes rebooting fixes it. How can I disable the self repair completely on a program that's already installed without removing it completely from the registry?

How to install fbprophet for Python 3.7 (anaconda distribution)

扶醉桌前 提交于 2020-12-13 00:45:01
问题 I attempted to use fbprophet for time series analysis using Python. I ran from fbprophet import Prophet but got No module named 'fbprophet' I think fbprophet is not part of packages that comes with anaconda distribution I went ahead to install fbprophet but got this error message No module named 'fbprophet' I am on Windows 10, 64 bits I install anaconda distribution of anaconda 3.7 I have ran conda install -c conda-forge fbprophet and conda install -c conda-forge/label/cf201901 fbprophet on