Embed file data into / retreive file data from Inno Setup - hex

Based on these posts,
Writing binary file in Inno Setup
Inno Setup: Reading a file from installer during uninstallation
What is the full code to embed the Bitmap image data into Inno Setup during compile and retrieve it during the installation?
This is required during uninstall process. Because this code does not work at uninstall:
ExtractTemporaryFile('myimage.bmp');
The file cannot be copied during the installation. It should be only retrieved during uninstallation.

Related

Windows referancing \ pointing to old config file for custom VB6 and vb.net program

I have a vb6 and vb.net program that is installed on Windows 10 in the program file (x86) folder structure under its own name. The program with its config files (.dat) are located in this folder. The problem I have is when I update the config files using he custom program the old data is still retrieved (previous \ original data) when extracting information from the config file.
I faced the issue a few years back as well and found that Windows created a copy of the config file and changed the pointer to the file Windows created and not the file that was stored in the programs folder.
I can not remember how we resolved the issue last time and searching the net also did not reveal any information that was of any help.
If anyone have a idea please let me know.
Thank you in advance.

Sqlite Data base not work after creating windows installer using Excelsior JET

Trying to build an installer using Excelsior JET
I am trying to create an installer for Eclipse RCP application product.
My product is working fine only concern is when i try to make windows installer (using Excelsior JET and install creator) the database does not update.
I didn't look at the tutorial (since it is flash), but is the problem that the MSI does not overwrite an existing database file on installation? If so, this normally has to do with MSI's default file versioning rules - and how it will preserve modified, unversioned files - in essence non-versioned files that have different create and modify date stamps. This issue is a common confusion associated with MSI deployments.
I will check back to see if this is the problem. In the mean time, here is a link to an answer describing ways to deploy data files and per-user files and settings: Create folder and file on Current user profile, from Admin Profile. You might want to install a read-only database file to a per-machine location, and then copy it to the user profile upon application launch.

Can't update sqlite db after inno setup php desktop

I have created a php desktop app withe sqlite and a setup file using inno setup. all is ok but I can't add or edit data into sqlite db using same php code after installing setup file that I have made with the working code. Its showing Errroe adding record. Read only file Mind it, before creating setup file I can add or edit dat into sqlite. anyone can help?
I had the same problem. I have solved in this way.
-> Download TakeWonership from this link: https://www.top-password.com/take-ownership-pro.html
then install it. Then you will find this option in the command bar.
-> find the project folder and hit the take ownership option
-> Now uncheck the read-only option from the folder properties.
Then your problem should be solved.. if not then open the project folder and uncheck read-only for all folders individually along with the database file. This works for me.

How to source control Elasticsearch

I'm just starting work on a website which I want to integrate Elasticsearch into. In my development environment, I will need to install ES so that I and other devs can quickly get started with minimum effort.
We're using ASP.NET for the website (so I know all the devs will be running the website on Windows) and Git for source control.
Previously, on a another project, I have followed the installation guide and simply source controlled the following folders in ES:
/bin/
/config/
/lib/
/modules/
please note, the above folders were for ES 2.x so may slightly differ from 5.x
I then created a simple .bat file which devs run when they start working on the project:
cd %~dp0\elastic\bin\
start elasticsearch
cd %~dp0
All the script does is run ES.
However, I wonder if I should even be source controlling these files. Perhaps it would be better if I had a .bat file which would download a fresh copy of ES when a developer starts work?

How to use the Desktop App converter (Desktop Bridge)

Just started on the process of converting my app to the windows store.
Having some hard time trying to figure out how to use the desktop app converter when the program comes in a zip package with additional files that needs to be included (Not just the EXE)
What i mean is typically speaking the users would download the zip file from the website and then extract it and run the EXE file. However in that zip file there's things like Drivers and Languages, I suppose i can make an MSI but i wanted to see if this was possible.
Anyone knows a way to just convert the ZIP file using the desktop app converter?
Thank you!
The Desktop App Converter has an option to create a Windows App Package (.appx) from a regular folder. So you just need to unzip your ZIP file and point the DAC at the folder, specifying what EXE should be the entry point: https://learn.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-run-desktop-app-converter#no-installer-conversion - note however, that you can't deploy drivers with a Windows App Package (.appx).

Resources