version-query | Zero-overhead package versioning for Python | Continuous Deployment library
kandi X-RAY | version-query Summary
kandi X-RAY | version-query Summary
Zero-overhead package versioning for Python.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Return the latest git version tag .
- Main entry point .
- Parse a Python version .
- Resolve relative links .
- Get the latest version tag for the given commit .
- Determine the required python version .
- Visit a reference node .
- Parse the README file .
- Return a version of the given path .
- Partition a list of version classes .
version-query Key Features
version-query Examples and Code Snippets
Community Discussions
Trending Discussions on version-query
QUESTION
I want to create an installer with Inno Setup, my first time using this tool.
What I’m trying to do is wrapping an existing installer of an existing software with a more detailed self-made installer (meaning a Setup.exe inside a Setup.exe).
What works for me after researching so far is asking the installer (Inno Setup *.exe) to run the included installer (actual software setup).
Why do I need another installer wrapped around? Because I want to give it some extra functions.
On particular thing is: I want to add a registry-key at the end of my installation, as the last step, fitting for relevant bit-system (32/64-bit). And here is where I'm asking expert-help, please. (main concern)
My problems in detail are as follows:
- I managed to add the key using the
[Registry]
section of Inno Setup. However,[Registry]
seems to always run before[Run]
– but I need the key added after the installation (added in a regedit-path the installation itself creates), not before, so I deleted what already worked (just in the wrong order) under[Registry]
. For accomplishing a reg-add after the main-install, I found the two proceduresAfterInstall
andCurStepChanged
/ssPostInstall
, andDeinitializeSetup
which seems not to fit so well for my concern (but thinkingAfterInstall
would be what I'm looking for(?!) since nothing more is supposed to come after and I think it won't run, if the install before already failed (?!). - I don't know the Pascal-Syntax for adding a registry-key (string) under an existing path. I could add it under
[Registry]
, however when it comes to the[Code]
-section I feel a little lost even I did a lot of research by now about Inno Setup given functions and such. - Third problem is that the path in the registry differs, depending on whether it's 32- or 64-bit System. So I actually need an extra query here checking the bit-System before adding either one or another path/key (because the install of the program itself creates the path depending on the bit-version already), I found the function
IsWin64
(Boolean), now trying to mix a function (bit-version-query) with a procedure (AfterInstall
) sounds even for me as a beginner wrong. Plus I tried to create an if-else-query, and the compiler told me I was doing it wrong.if IsWin64 then...
works, but adding an else doesn't.
So the solution in theory would roughly be something like…
...ANSWER
Answered 2020-Mar-08 at 20:00To execute a code after an installation finishes, use the CurStepChanged
event function and check for CurStep = ssPostInstall
.
As Inno Setup is 32-bit application, by default it automatically gets redirected to the Wow6432Node
on 64-bit systems. No need to do that explicitly. So if the Wow6432Node
is the only difference between the 32-bit and 64-bit path, you do not to do anything special:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install version-query
You can use version-query like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page