How do I put specific files/components into specific Inno Setup .bin files? - directory

Lets say I have 3 folders with files in them, A B and C. I want the user to be able to download either A B or C as separate .bin files, and install it with the same Inno Setup installer.
In the "what components do you want installed" screen, the ones that aren't in the same directory as the installer .exe are grayed out.

Inno Setup cannot do this for you.
You would have to code it yourself.
ZIP the components to separate ZIP files. And have Inno Setup unzip them.

Related

I want to uninstall Arduino for a fresh

I deleted Arduino without Window's control panel.
I make android fire in same name with Arduino forder.
So, Arduino's files are deleted. Now I can'd find uninstall.exe file.
As a image, I can't reinstall Arduino either.
Because uninstall.exe is not in there.
How can I make fresh Arduino?
I want to make sure if the folder D:\합강테크\arduino contains the Arduino IDE files or it contains files you've created. I can't understand why uninstall.exe file was deleted even though you've created a file (or a folder) named "arduino". Creating a file or a folder with the same name does not delete contained files.
Anyway, if the uninstall.exe file was really disappeared, try deleting the D:\합강테크\arduino folder and setup the Arduino IDE again. If you don't want to delete D:\합강테크\arduino folder, rename the folder, say D:\합강테크\arduino_backup, and launch the installation file.

.Rproj file disapeared but project files remain (git shows no changes)

I've been building an R package via an R project file (.Rproj) in R studio with the project file linked to my github. When I was working on it this morning, all was as it should be, but when I returned to it this afternoon, the .Rproj file had mysteriously vanished. All other files and folders associated with the package are where they should be (e.g., the "R" folder with the scripts for the package's functions, the DESCRIPTION file, the man folder, etc.) but the .Rproj file is gone. I have not deleted it and it is not in my trash can, nor does git have any record of it for some reason.
If I do a search for the file name in the windows search bar (I'm suing windows 7, btw) the file shows up and says that it is in the correct location, but if I click on it, I get an error message saying that the file has been moved or deleted. Similarly, if I try to navigate to where the file should be via "open project" in R, there is a greyed out ".Rproj.user" folder that I don't recall having seen before, but no project file.
I'm at my wits end for what is going on. The package on github appears to all still be correct (as do the files on my computer), but without being able to find or access the .Rproj file I can't easily edit the package and push the changes to github.
Does anyone have any idea what is going on or how to retrieve my package file? Since I have all the source files for it, I could always build a new project using the source files, but then I need that to link up to my github which is linked to a now non-existent project file, and everything becomes really messy and tedious quickly.
PS I have restarted both my computer and R. It didn't help.
You can probably just create a "new" project in the existing folder to generate a new .Rproj file.
The .Rproj file doesn't actually do that much. It mostly lets RStudio know that "this folder is the root directory of a project named X". Git keeps its own hidden files in the directory to track things (that RStudio will look for if it's a project).
If you haven't done this, I'd also recommend adding your .Rproj files to your .gitignore file - Rproj files are user-specific so shouldn't be tracked in version control. (If you used RStudio to create the git repo, this will be done automatically.)

How to unpack an msbuild web package without deploying it to a web server?

When MSBuild packages an ASP.Net website, it creates a .zip file and a set of xml files. Using msdeploy, I can push that zip file and a set of parameter replacements to an IIS server.
Now, here's the conundrum: given that Web Package zip file, is there a way to unpack it and do the token replacement cleanly without deploying to IIS? Just unpack it to a folder and apply the SetParameters.xml so that it would be ready to robocopy to a file system location?
Msdeploy's parameters are opaque to say the least. I've tried deploying using the file and folder providers, and that doesn't work.
I could roll my own - I'd have to reverse-engineer the token replacement logic and deal with how the zip file contains the entire folder tree right down to the drive root (instead of being relative paths from the project folder, which is what it will use when it deploys). All of this is doable... but very annoying and I was hoping there was a better way.
Thanks in advance.
Following up on this: In the end I had to do it in powershell. The code is tied into a whole bunch of other deployment code that's company-specific, so I can't paste it here, but in short:
Unzip the .zip into a temporary location.
Recurse the directories until you find the packagetmp - this is the actual meat of the zip.
Delete the target web app folder on the webserver (carefully - as many sanity checks as possible need to happen before this step)
Copy the contents of packagetmp to the target folder-path on the web-server.
Apply use xpath operations to do the config transforms in powershell to provide connection strings and logging endpoints.
Restart the app pool (do not skip this step you get subtle failures if you do).
Clean-up (delete the temporary folder).

Qt online installers list all repos

I'm learning the Qt Installer Framework and creating repositories on a web server to be used by the online installers. My problem is that even though each repository and installer is treated separately in the creation process, when I run any of the installers they list ALL the programs/repos on our server and check each of them for install. It is of course possible to manually uncheck them, but really I want an installer specific to each program as different departments at my work use different programs and shouldn't have to go through the full list.
I don't understand why the installers are listing everything: each program/package has an individual repository on the server and an individual installer created using a config.xml, installscript.qs, and package.xml specific to that program. Nowhere in any of those files is there a reference to any other program or repository, and I've used the repogen and binarycreator for each individual program rather than as a batch. The only thing I can think of that might be affecting it is that the individual packages are subfolders under the same "package" folder in one unified installer framework folder. I just point the repogen.exe and binarycreator.exe at the desired subfolder. Could this be causing my problem? Do I really need to have a separate installer folder with config and package subfolders for each program?
There's obviously a lot of moving parts to this so I'm not sure what specific code/info I should post, but please feel free to ask me for something that may be helpful and I will provide.
I'm not sure of the details of why, but the answer appears to be that every program needs its own installer folder. It seems that everything under a single "packages" directory is consider a component of the same program, regardless of subfolders or arguments passed to the binarycreator. So if you have multiple programs they each need their own installer folder with config and packages directories. That is unless you want a full list of available programs associated with each installer; and then what's the point of separate installers?

Iexpress for large files (corrupted Cabinet file)

I wish to combine many installers and make an exe using Iexpress. Total size of installers is 750MB. I tried combine and generated using Iexpress but the created exe file size is only 80MB. And when i double click and attempt to run the exe, its stated that its corrupted cabinet file and cannot be executed. After that i rebuild two exe files by separated installers into two groups and each group file size is around 300++MB. Both exe files are executed successfully. So i suspect that i cannot build all installers into one exe due to its large size. May i ask whether it is correct that iexpress will restrict the exe file size or i am doing something wrong on this?
I think a IExpress package is limited to about the size of a CD-ROM. If you look at the auto-generated DDF file that IExpress generates, one of the directives it gives is:
.Set MaxDiskSize=CDROM
Probably this means ~650MB.
I tried to find a way to change it, but I don’t see how, sorry.

Resources