NSIS : Delete files from Hidden folder (from start menu) - nsis

I have written code script for uninstall of my application, somehow uninstall.exe is getting deleted. so script is not able to uninstall product . Now I want to write a script to delete folders directly from directory,
From
1. Installation Directory
2. Start Menu
I can delete it from Installation Directory , but as start Menu is inside ProgramData , and Program data folder is hidden. I am not able to delete it by nsis, please suggest the efficient approach.
Description :
-When I install new version of application ,it'll automatically uninstall previous installed location (just running uninstall.exe).
-Sometimes some how uninstall.exe get deleted , so while installing new version , user needs to delete application mannually from installed location and from StartMenu (C:\ProgramData\Microsoft\Windows\Start Menu\Programs\$application)
I am thinking to remove these directoryy from nsis script.
But C:\ProgramData is hidden so i am not able to delete it by script,
Is there any possible way.

Related

How to remove entire files and folders created for the nodejs and npm installation

I don't know what happend. All of a sudden, my nodeJS and npm started not responding and many errors popup and i reinstalled many times and not yet that works. When one problem solves, another rises. So i want to clean enitre setup files including in registery and other areas. Please someone help me.so i can reinstall node and npm.
To remove node from your window follow below instructions
1- Uninstall node from Programs & Features with the uninstaller.
2- Remove all the shortcuts like on task managers/ desktop etc
3-Reboot your system
4-Remove all the folder given below
C:\Program Files (x86)\Nodejs
C:\Program Files\Nodejs
C:\Users\{User}\AppData\Roaming\npm (or %appdata%\npm)
C:\Users\{User}\AppData\Roaming\npm-cache (or %appdata%\npm-cache)
C:\Users\{User}\.npmrc (and possibly check for that without the . prefix too)
5-Remove from the environment variable via checking Path value
6-Open your command prompt try to run below command
where node
If it will show directories then delete all the directories
7-Reboot your system
8-Go to the node js side download or directly install the node from there.

Installshield LE is not updating the files while attempting upgrade

I've spent literally the last 5 hours around this, and can't get it to work.
I've done everything it's said in similar questions.
Change the ProductCode, keep the old UpgradeCode, Change product version.
Again and again. It doesn't replace the updated .exe file it's supposed to.
What am I missing?
Edit: I also have doublechecked the .exe build in visual studio, there it's builded and working properly. Only when I run the setup that's supposed to copy it to install folder, and only then it fails, keeping the old .exe file there, and not updating.
Does the exe on the target system have the same or higher file version than the exe you are installing? Windows installer will not overwrite a file that has a higher file version then the file it is installing.
look at the install log. search for the component name, check the Request/Action state. Is the state set to "Local"? Also search for the file name to see if msiexec tried to copy it.

Sublime3 - `PyV8` manual installation not working

In my installed sublime text, since I use the proxy, I installed the PyV8 manually:
step1: I opened this path:
C:\Users\*****\AppData\Roaming\Sublime Text 3\Packages
step2: and created a folder called : PyV8 and
step3: I downloaded a zip file from : https://github.com/emmetio/pyv8-binaries and again created a new folder instead of step 2 as pyv8-win64-p3
step4: I unzipped the folder that I downloaded from step3 to newly created folder as pyv8-win64-p3 (step3).
Now I restarted my sublime3, but still I am getting an error saying:
any one correct what I did wrong?
First, close Sublime. Then, find the folder that contains PyV8.py and _PyV8.pyd. Move the contents to C:\Users\***\AppData\Roaming\Sublime Text 3\Installed Packages\PyV8\win64-p3, and delete the original PyV8 folder in Packages. Restart Sublime and you should be all set.

Why my uninstaller is not working properly in nsis?

I have written a nsis script in which i need to prompt the user where there was previous installation and uninstall the previous version if user select the same folder as previous version.It is working fine.But suppose user choose different directory than the uninstall.exe is giving problem.
Ex-suppose user install version 1.2 in folder a and then agian version 1.2 in folder B .
Than in every case the uninstall .exe is pointing to folderb not folder a.How can i solve this issue
In the uninstaller, $instdir is just the directory the uninstaller is in so the uninstaller itself should not care.
You say you are prompting the user, so you already know the location of the old install so all you have to do is to invoke the uninstaller with the special parameter so it knows where to uninstall from...

TYPO3 Dumy package does not show installation screen

I am trying to install the Dummy package to my laptop.
I have installed WAMP and i have placed the dummy package into the WWW directory.
However when i go to my Localhost from WAMP and click on the dummy page, instead of showing me the installation screen it shows my the directory index.
to create ENABLE_INSTALL_TOOL just use command line
win+r -> type cmd -> navigate to directory -> type: echo > ENABLE_INSTALL_TOOL
Dummy package has no sources inside, you can see, there's no even index.php file.
Use Source + Dummy which will give you an empty TYPO3 system or even better Introduction Package for learning purposes - working and containing lot of samples.
To create ENABLE_INSTALL_TOOL make sure that your system displays files' names with extension ie: open with the Windows Explorer folder where you unziped the package and make sure that it can see filenames as INSTALL.txt (not only INSTALL) if it doesn't you need to search in options of Windows Explorer...)
Then go to folder typo3conf and create just common, empty file ENABLE_INSTALL_TOOL.txt and finally chane it's name and remove .txt extension.
TYPOe install tool will be satisfied.

Resources