Entry of Uninstaller from the Start Menu Shortcut is getting deleted after clicking on the finish button - install4j

I have an app which creates shortcuts for launcher and Uninstaller in the Start Menu. It works well on Windows 7 but when I installed the same app on Windows 10, it does creates the shortcuts for both in the Start Menu folder but the entry for Uninstaller is getting deleted just after clicking the finish button on the last installation screen. I think just after clicking the finish button some cleanup action starts as I see in the Installation log but don't know if this is clearing the Uninstaller entry in the Start Menu folder. I am using the 6.0.4 version of Install4j. Please advise how to resolve this.
The logs for creating the start menu shortcuts are below:
[INFO] com.install4j.runtime.beans.actions.desktop.CreateProgramGroupAction [ID 10]: Execute action
Property unixMenuEntries: false
Property uninstallerMenuName: MyApp Uninstaller
Property categories: Application
Property addUninstaller: true
Property allUsers: true
Property linkDirectory:
Property unixSymlinks: false
Property programGroupName: MyApp_1.1
Property addDefaultLauncherLinks: true
Property programGroupEntryConfigs: [ProgramGroupFileConfig{target=MyApp.exe, arguments='', runAsAdministrator=false}]
Property failForSymlinksNotCreated: false
Property rollbackSupported: true
Install file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\MyApp_11.1\MyAppHelpViewer.lnk; size: 2149 bytes; exists: false
File options set to: [fileTime: Wed Dec 30 07:50:39 EST 2015, mode: 644, overwriteMode: Always, shared: false, uninstallMode: Always, delayIfNecessary: false]
Install file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\MyApp_11.1\MyApp Uninstaller.lnk; size: 2142 bytes; exists: false
File options set to: [fileTime: Wed Dec 30 07:50:39 EST 2015, mode: 644, overwriteMode: Always, shared: false, uninstallMode: Always, delayIfNecessary: false]
Install file: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\MyApp_11.1\MyApp.lnk; size: 2129 bytes; exists: false
File options set to: [fileTime: Wed Dec 30 07:50:40 EST 2015, mode: 644, overwriteMode: Always, shared: false, uninstallMode: Always, delayIfNecessary: false]
Execute action successful after 610 ms
The entry for MyApp.exe and MyAppHelpViewer.exe remains there in the Start Menu folder but after clicking the finish button the entry for MyApp Uninstaller is getting disappeared.
The below log is printed for the clicking finish button:
[INFO] com.install4j.runtime.beans.screens.FinishedScreen [ID 12]: Show screen
[INFO] com.install4j.runtime.beans.screens.FinishedScreen [ID 12]: command: finish
cleaning up
Finished

I have the exact same problem using NSIS Script. The short-cut for the Uninstaller in the start menu is there. Finishing the setup by clicking "Finish": the short-cut disappears... But its there in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\\. It is just not shown in the start menu.
Seems to be a Windows 10 "Feature". But I did not yet find out how it works.

Related

Remove files under AppData that my app has downloaded in Install4J

I have an Install4J project where the application installed downloads content to:
${installer:sys.userHome}\MyApplication
The installer does not copy any files to this location, so it is not part of any file sets etc.
I have tried to add an action in the uninstaller using "Delete files and directories", and copied "${installer:sys.userHome}\MyApplication" to "Files and directories"
However, it doesn't seem to delete the folder.
Any pointers on what I am missing?
Edit:
Here is the uninstall log regarding the delete action:
I found this in the uninstall log regarding the delete action:
[INFO] com.install4j.runtime.beans.screens.StartupScreen [ID 23]: command: move 1 screens, executing actions, checking condition
[INFO] com.install4j.runtime.beans.screens.UninstallWelcomeScreen [ID 24]: Show screen
[INFO] com.install4j.runtime.beans.screens.UninstallWelcomeScreen [ID 24]: command: move 1 screens, executing actions, checking condition
[INFO] com.install4j.runtime.beans.screens.UninstallationScreen [ID 27]: Show screen
[INFO] com.install4j.runtime.beans.actions.files.DeleteFileAction [ID 869]: Execute action
Property directoryFilter: null
Property fileFilter: null
Property files: [C:\Users\nim99\AppData\Local\Atlas]
Property filesRoot: null
Property backupForRollback: true
Property recursive: false
Property rollbackSupported: true
Property showFileNames: true
Property showProgress: false
Execute action successful after 0 ms
[INFO] com.install4j.runtime.beans.screens.UninstallationScreen [ID 27]: command: move 1 screens, executing actions, checking condition
[INFO] com.install4j.runtime.beans.screens.UninstallSuccessScreen [ID 30]: Show screen
[INFO] com.install4j.runtime.beans.screens.UninstallSuccessScreen [ID 30]: command: finish
cleaning up
Finished at 2022-10-04 16:20:25
The "Property files: " seem to be ok. This is where my application downloads content to. It does download to sub-folders though:
I looked at the Delete Action and i have the "Recursive" checkbox checked. But the log seems to indicate that recursive is set to false.
Property recursive: false
Edit 2:
I changed the order of the uninstallation actions and now it seems to work!
I had the Uninstall files action first and the Delete files action after that.
With the Delete files action first, it seems to have fixed the problem.

Notice: Undefined offset: 3 in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-dashboard\index.php on line 18

I have EasyPHP-deverser-17 installed and working well for months. Today, without any reason (i mean did not change anything), i get these error messages when opening the Dashboard:
Notice: Undefined offset: 3 in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-dashboard\index.php on line 18
Notice: Undefined offset: 3 in C:\Program Files (x86)\EasyPHP-Devserver-17\eds-dashboard\index.php on line 23
I can't figure out what happened and i can't find any solution on how to fix this.
Thank you so much for any help.
Sylvain
If you have not fixed this issue since you asked this question, I found the answer on GitHub:
Step 1 - Download the link file:
Download Link (update): https://drive.google.com/file/d/12rP6-UM2OxO9Qmyn3FHI6AsGSOk4Avni/view?usp=sharing
Step 2 - As administrator authorization is required, authorize it.
Step 3 - On the screen click "Y" to continue ("N" to exit), and wait for the process;
Step 4 - Go to the options to start the servers in the icon that is in the system tray, or go to Dashboard and refresh the page, then start the servers in the HTTP and DB buttons.
I just tried to follow below step worked for me.
Open cmd run as administrator.
Navigate to the C:\Program Files (x86)\EasyPHP-Devserver-17
Type cmd lodctr /r and press enter.
Success to all!

uninstaller doesn't delete all installed files

We have a strange problem during our uninstall process.
After the uninstaller finishes, the user custom sources and some parts of the jre are still present on the system. In the uninstaller.log it states the postponed deletion of some of these files, but not all of them.
Has someone an idea why the deletion is postponed and why they are not deleted at all?
Additionally that doesnt happen on all systems, but is reproducable per system. For example on my developer machine everything works fine, but on a fresh vm the problem occurs.
[INFO] com.install4j.runtime.beans.actions.UninstallFilesAction [ID 29]: Execute action
executing auto uninstall
postponing deletion of C:\Program Files (x86)\mytool\jre\lib\rt.jar
postponing deletion of C:\Program Files (x86)\mytool\.install4j\user.jar
postponing deletion of C:\Program Files (x86)\mytool\.install4j\i4jruntime.jar
postponing deletion of C:\Program Files (x86)\mytool\jre\lib\resources.jar
postponing deletion of C:\Program Files (x86)\mytool\jre\lib\jsse.jar
postponing deletion of C:\Program Files (x86)\mytool\jre\lib\charsets.jar
postponing deletion of C:\Program Files (x86)\mytool\jre\lib\jce.jar
postponing deletion of C:\Program Files (x86)\mytool\jre\lib\jfr.jar
postponing deletion of C:\Program Files (x86)\mytool\.install4j\user\myaction.jar
Execute action successful after 717 ms
my first guess was that it has something to do with the user action. but this is part of the automatic updater which is not executed at all.
edit:
after adding an action "Check for running processes" it is still the same behaviour.
[INFO] com.install4j.runtime.beans.actions.misc.CheckRunningProcessesAction [ID 738]: Execute action
Property additionalExecutables: null
Property closeStrategy: Allow soft close
Property message: install4j hat entdeckt, dass mytool zur Zeit ausgeführt wird.
Bitte schließen Sie jetzt die folgenden Instanzen, und klicken Sie auf "Wiederholen", um fortzufahren, oder auf "Abbrechen", um zu beenden.
Property timeOut: 5000
Property allowIgnore: false
Property includeLaunchers: true
Property rollbackSupported: true
Execute action successful after 0 ms
My assumption from this log message is, there were no running processes, as the action is completed after 0 seconds?
This means that a launcher that is using the bundled JRE is still running. Some files in the JRE are locked in that case and they cannot be deleted.
Use a "Check for running processes" action in the uninstaller to shut down all launchers before the "Uninstall files" action is executed.

EasyPHP Webserver - Dashboard - http://127.0.0.1:10000 No longer loading

I am running EasyPHP Webserver 14.1 on Win Server 2012.
When I first installed it the dashboard loaded fine.
Now that I have built up my PHPbb3 forum it no longer loads. The browser continuously states
Waiting for response from 172.0.0.1...
but nothing happens, it just keeps spinning trying to load.
Is there any way I can fix /restore / reinstall the dashboard without affecting any work I've done on PHPbb3?
If it helps after some searching on this forum I created a .bat file containing:
ews-dashboard.exe -S 127.0.0.1:10000 -c ews-dashboard.ini cmd /k
This opens a CMD window containing the following:
C:\Program Files (x86)\EasyPHP-Webserver-14.1b2\dashboard>ews-dashboard.exe -S 127.0.0.1:10000 -c ews-dashboard.ini
PHP 5.4.30 Development Server started at Tue Nov 14 14:33:33 2017
Listening on http://127.0.0.1:10000
Document root is C:\Program Files (x86)\EasyPHP-Webserver-14.1b2\dashboard
Press Ctrl-C to quit.
But this doesn't seem to change anything.
it will work if you change the current port.
start-ews.bat
ews-dashboard.exe -S 127.0.0.1:1000 -c ews-dashboard.ini cmd /k
ews-dashboard.ini
[ServiceEx]
ServiceExeFullPath = "D:/Program Files/EasyPHP-Webserver\dashboard\ews-dashboard.exe"
; program arguments to be sent to executable
options = "-S 127.0.0.1:1000"
; can program interact with desktop [true | false] (default: true)
desktop = false
; start type (valid values: Auto Manual Disabled) (default: auto)
Start=Auto
; start the service upon installation [true | false] (default: no)
StartNow=true

How can I debug odoo 9 in eclipse? [Linux]

I have eclipse Neon in Linux Ubuntu 16.04
When I run a odoo server, it works everything fine in port 8069
But, when I debug the same odoo server, (now, the port is 8072) it appears to freeze in a infinite loop. In the browser doesn't appear anything (Waiting for localhost...), and the log shows this:
...
25138 INFO mydb openerp.modules.loading: 81 modules loaded in 0.73s, 0 queries
25138 INFO mydb openerp.modules.loading: Modules loaded.
25138 INFO mydb openerp.addons.base.ir.ir_http: Generating routing map
192.168.1.31 - - [2016-09-12 12:14:51] "GET / HTTP/1.1" 200 24082 21.358104
25138 INFO mydb openerp.addons.bus.models.bus: Bus.loop listen imbus on db postgres
This is my odoo9-server.conf (renamed openerp-server.conf):
[options]
admin_passwd = myAdminPass
db_host = False
db_port = False
db_user = myUserName
db_password = myDatabasePass
addons_path = /etc/odoo/server/addons,/etc/odoo/server/addons_extra
logfile = None
xmlrpc_port = 8069
log_level = debug
Is there something wrong?
To debug your odoo+python code in eclipse, start eclipse in debug perspective and follow the given steps:
1: Stop your Odoo running server by pressing "ctr+c".
2: In eclipse go to Menu "Run/Debug Configurations". In configuration window under "Python Run", create new debug configuration(Double click on 'Python Run').
3: After creating new debug configuration follow the given steps:
3.1: In "Main" tab under "Project", select the "server" project or folder (in which Odoo Server resides) from your workspace.
3.2: Write location of 'openerp-server' or 'odoo.py' under "Main Module".
Ex: ${workspace_loc:odoo/openerp-server}.
3.3: In "Arguments" tab under "Program Arguments", click on button "Variables" and new window will appear.
3.4: Then create new "Variable" by clicking on "Edit Variables" button and new window will appear.
3.5: Press on "New" button and give your addons path as value.
Ex: --addons ../addons,../your_module_path
3.6: Press Ok in all the opened windows and then "Apply".
4: Now into "PyDev Package Explorer" view go to odoo and right click on "openerp-server" or odoo.py file, Select 'Debug As --> Python Run'.
5: Now in "Console" you can see your server has been started.
6: Now open your .py file which you want to debug and set a break-point.
7: Now start your module's form from 'gtk' or 'web-client' and execution will stop when execution will reach to break-point.
8: Now enjoy by debugging your code by pressing "F5, F6, F7" and you can see value of your variables.
Source: https://stackoverflow.com/a/12298831/1312904
To invoke pdb, add this line
import pdb; pdb.set_trace() anywhere you want to set a breakpoint
and then start your odoo with the --debug flag set, something along the lines of
./odoo.py --addons=addons,myaddons --debug
and then when you execute an action on the server that hits the point where you invoked pdb, the execution will immediately stop and you'll have a pdb prompt that you can use to debug
Finally I got the solution.
In the Debug Configurations, I changed the content of Main Module and I wrote this:
${workspace_loc:my_project/openerp-gevent}
The important part is the openerp-gevent
Now, the debug works fine