How do I install a library permanently in Colab?

Yes. You can install the library in Google Drive. Then add the path to sys.path. import os, sys from google.colab import drive drive.mount(‘/content/drive’) nb_path=”/content/notebooks” os.symlink(‘/content/drive/My Drive/Colab Notebooks’, nb_path) sys.path.insert(0,nb_path) Then you can install a library, for example, jdc, and specify the target. !pip install –target=$nb_path jdc Later, when you run the notebook again, you can … Read more

Adding Custom prerequsites to visual studio setup project

I figured out how to add Custom Prerequisites to the Visual Studio prerequisites dialog box. MSDN as a good article on creating the prerequisite. Basically you just have to create a product manifest and a package manifest, copy them along with your distributable file to : \Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages. Visual studio will automatically pick it … Read more

Inno Setup: How to automatically uninstall previous installed version?

I have used the following. I’m not sure it’s the simplest way to do it but it works. This uses {#emit SetupSetting(“AppId”)} which relies on the Inno Setup Preprocessor. If you don’t use that, cut-and-paste your App ID in directly. [Code] { ///////////////////////////////////////////////////////////////////// } function GetUninstallString(): String; var sUnInstPath: String; sUnInstallString: String; begin sUnInstPath := … Read more

How to implement WiX installer upgrade?

Finally I found a solution – I’m posting it here for other people who might have the same problem (all 5 of you): Change the product ID to * Under product add The following: <Property Id=”PREVIOUSVERSIONSINSTALLED” Secure=”yes” /> <Upgrade Id=”YOUR_GUID”> <UpgradeVersion Minimum=”1.0.0.0″ Maximum=”99.0.0.0″ Property=”PREVIOUSVERSIONSINSTALLED” IncludeMinimum=”yes” IncludeMaximum=”no” /> </Upgrade> Under InstallExecuteSequence add: <RemoveExistingProducts Before=”InstallInitialize” /> From … Read more

Extract MSI from EXE

For InstallShield MSI based projects I have found the following to work: setup.exe /s /x /b”C:\FolderInWhichMSIWillBeExtracted” /v”/qn” This command will lead to an extracted MSI in a directory you can freely specify and a silently failed uninstall of the product. The command line basically tells the setup.exe to attempt to uninstall the product (/x) and … Read more