When I want to delete my application (that was installed through an installer with Inno Setup), anything related to it should be removed from my drive.
So my goal is to also delete a temp folder that was created at runtime by my application.
Unfortunately, this line of code was not able to solve my problem
[UninstallDelete]
Type: filesandordirs; Name: "{tmp}\MyTempFolder"
I get this error message in the Debug Output:
Failed to delete directory (145). Will retry later.
Related
I am new to installshield. However, I'm trying to apply the simplest of commands, but ran into an issue.
I have an installation that needs to be installed in c:\program files(x86) (Tried other locations as well). We want to make it automated, so we applied the following command to record the installation.
(Location of the setup)\Setup.exe -r -f1(Full path)\SetupAnswer.iss
and run the setup smoothly.
which installed in c:\program files(x86)(Program name) and created an answerfile
Next when I try to run (Location of the setup)\Setup.exe -S -f(Full path)\SetupAnswer.iss On a new PC it doesn't work.
After some testing. I found that if I create the folder name in c:\program files(x86)(Folder name) before I run the command above, it works like a charm.
I can create a short script to create a folder before running the setup command. But it doesn't look "clean". Checking the .ISS file reveals that at the location it wants to create the folder it looks like this -
szDir=(installation path)\(Folder name)
Result = 1
Not sure if this szDir means create or just use the following path.
Let me know if I'm missing something.
Regards,
Nik
There was an issue with the installation sequence, found it after following yossiz74 advice. There was a missing line due to the folder already existing in c:
Reinstalled it on a clean PC with the record method - Problem solved.
I am trying to build an installer for my project. The problem is that i am unable to successfully build the installer with the following error:
ERROR: 'msadox28.tlb' should be excluded because its source file
'C:\Program Files (x86)\Common Files\System\ado\msadox28.tlb' is under
Windows System File Protection.
From what i can gather, this file has to do with ADOX and ADODB that i use to create, read and write data from a local access database. Excluding this file causes the program to not work at all when it has been installed, because it attempts to create a fresh database from scratch at first launch.
The program works fine and there is no errors with it, but i want to build an installer so that i can send the program to a few users to test it and the database component is the most important part of my project.
Can somebody please assist me with solving this problem?
I have downloaded two zip files of Oracle 12 C.
I have extracted and trying installing it on Windows 10 64 Bit.
winx64_12102_database_1of2
winx64_12102_database_2of2
Setup is available in folder one running the same from there.
Every time I am getting below error
The solution to this Error is simply when you are unzipping the folders unzip at one common folder as i have done
You will find components folders as shown below
D:\softwares\12coracle\winx64_12102_database_1of2\database\Components
D:\softwares\12coracle\winx64_12102_database_2of2\database\stage\Components
Please try to read the log details as shown in screenshot above,its showing the path where installation log are being created. The location was C:\Program Files\Oracle\Inventory\logs \installActions2016-01-26_01-50-16AM.
After going through the logs i found that,In my case it was not able to find the files at below path during the installation
D:\softwares\12coracle\winx64_12102_database_1of2\database\stage\Components\oracle.rdbms\12.1.0.2.0\1\DataFiles
Because there was other unzipped part as shown below and it was unable to get the files at abovepath Hence i copied all the file from below path to the above path location
D:\softwares\12coracle\winx64_12102_database_2of2\database\stage\Components\oracle.rdbms\12.1.0.2.0\1\DataFiles
I ran the whole installation again and folks it completed in overall 55 mins the overall installation with the plugable and container database configuration itself.
Follow the below steps:
Abort the current installer.
Navigate to second folder /database/stage/Components/ and copy all the files.
Paste all the files in first folder location /database/stage/Components/
Finally , run the setup.exe as administrator
This is really weird.
I am trying a clean Teamcity 9.1.1 install but the Data Directory is nowhere to be found.
if I access the Global Settings tab under Administration, it lists "C:\Windows\System32\config\systemprofile.BuildServer" - a folder that doesn't exist.
if I try to browse to that folder, it shows me a range of files; uploading a specific file there instead uploads it to C:\Windows\SysWOW64\config\systemprofile.BuildServer.
there is no teamcity-startup.properties file anywhere - I am unable to customize the location of the data directory.
when I restore a backup, the backup files are instead restored to C:\Users\[user name]\.BuildServer rather than in the correct data directory.
Does anyone has any suggestions on how to regain control of the situation? How can I tell TeamCity which data folder to use?
I resolved the situation by:
stopping TC services;
creating a teamcity-startup.properties in [install folder]\conf with the following content:
teamcity.data.path=D:\\[install folder]\\config
restarting TC services;
restoring my backup.
This restored the 9.1.1 install as well as stabilizing the location of the data directory. After this was done, the subsequent installation of 9.1.7 prompted me to uninstall 9.1.1 first (which it hadn’t done the first time around) and the upgrade succeeded.
I believe the system was already compromised at the beginning, unknown to me, due to the data folder being all over the place. Once that was resolved, everything else fell into place.
I want to run a batch file – say driver.bat – after the application installation is completed. This has to be done using the Visual Studio setup and deployment while creating package. This question has been asked before, but the solution is giving me a problem: once the installation is done, it’s throwing an error message like:
'cmd.exe' should be excluded because its source file is under Windows File Protection
This issue comes when the file is marked as a protected file on the Windows operating system. You need to exclude the file from this protection to execute successfully. The following link would help you do so -
http://msdn.microsoft.com/en-us/library/x97ae5d9(v=vs.80).aspx