Inno Setup update a installed program - file

In my into setup script I put the following line :
Source: "..\Source\Programmverzeichnis\*"; DestDir: "{app}"; Flags: recursesubdirs;
At the first install the setup copy 20 files into the program folder. For the second compile I put 5 files into the folder ..\Source\Programmverzeichnis. Inno Setup get these 5 new files and put it into the second setup at compiling. Both setup have the same setup script. Only the 5 files are changed in the source.
If I installed the first setup and then the second setup with the new 5 files. The second setup doesn't copy the new 5 files into the program folder. The flags 'onlyifdestfileexists' and 'onlyifdoesntexist' have no effect.
What can I do, that the second setup copy the new 5 files into the program folder if I only put it into the source and make a new compile ?

Related

Codename one build error with new Netbeans installation

I recently starting using a new Mac for development, and I have a cn1 app I've been working on on a Windows machine for a while. I installed Netbeans and the cn1 plugin, but I can't run the project or send a build. The error I get is this:
ant -f /Users/yaakov/Development/workspace/medonline_cn1 build-for-android-device
No GUI Entries available
init:
deps-clean:
Updating property file: /Users/yaakov/Development/workspace/medonline_cn1/build/built-clean.properties
Deleting directory /Users/yaakov/Development/workspace/medonline_cn1/build
refresh-libs:
Deleting directory /Users/yaakov/Development/workspace/medonline_cn1/lib/impl
clean:
copy-android-override:
Created dir: /Users/yaakov/Development/workspace/medonline_cn1/build/classes
Copying 8 files to /Users/yaakov/Development/workspace/medonline_cn1/build/classes
copy-libs:
Copying 96 files to /Users/yaakov/Development/workspace/medonline_cn1/build/classes
deps-jar:
Updating property file: /Users/yaakov/Development/workspace/medonline_cn1/build/built-jar.properties
compile-css:
/Users/yaakov/Development/workspace/medonline_cn1/build.xml:37: Could not find designer_1.jar file at path /Users/yaakov/.codenameone/designer_1.jar
BUILD FAILED (total time: 1 second)
The directory /Users/yaakov/.codenameone doesn't even exist. There is /Users/yaakov/.cn1 directory, however, but it's empty. The project is a GUI builder project. I'm running Java 8.
Assuming you installed the Codename One plugin on NetBeans just double click the res file. This will launch the designer and create that directory. Everything should work as expected after that.

Creating Bat file from inno setup file

I have an inno setup code which works fine. Can anyone tell me how to make a bat file from an inno setup code so that a single click will initiate the installation set up.I have done that for java class files.Any help is appreciated.
There should be no need for a .bat file. Inno Setup creates a stand-alone executable (by default named Setup.exe) that you can simply double-click like any other Windows executable.
The executable it creates is nameable either by renaming the Setup.exe to a different name (YourAppSetup.exe, for instance) manually, or by using the OutputBaseName value in the [Setup] section. You can control where the setup executable is created by using the [Setup] section value OutputDir. Here's an example, from the CodeExample1.iss' sample provided in yourInno Setup` installation:
[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={code:MyConst}\My Program
DefaultGroupName=My Program
UninstallDisplayIcon={app}\MyProg.exe
InfoBeforeFile=Readme.txt
OutputDir=userdocs:Inno Setup Examples Output
This creates the default Setup.exe in the userdocs: (your My Documents folder), in a subfolder named Inno Setup Examples Output. To put it somewhere else, just change the OutputDir entry to a different location. For instance, to put it in a sub-directory of your source folder named Installer, just use
OutputDir=Installer
For more info, see the documentation, in the Setup Script Sections->[Setup] Section Directives branch.
To change the name from Setup.exe to something else, add a new entry:
OutputBaseName=MyAppSetup

GAE plugin or GAE appcfg.cmd are not working with --enable_jar_splitting parameter

I have this error message:
Preparing to deploy: Created staging directory at:
'C:\Users\leet\AppData\Local\Temp\appcfg4768292050846213939.tmp'
Scanning for jsp files. Compiling jsp files. Scanning files on
local disk. java.io.IOException: Jar
C:\Users\leet\AppData\Local\Temp\appcfg4768292050846213939.tmp\WEB-INF\lib\appengine-api-1.0-sdk-1.7.7.jar
is too large. Consider using --enable_jar_splitting.
I issued the command like this, but it does not work with --enable_jar_splitting.
"C:\Program Files\Java\jdk1.7.0_17\bin\java.exe" -Xmx1100m -cp
"%~dp0..\lib\appengine-tools-api.jar"
com.google.appengine.tools.admin.AppCfg --enable_jar_splitting -e
user#domain.com update "C:\myfolder\myproject\war"
Any comment?
The Java App Engine 1.7.7.1 SDK has been released to address this windows specific issue.
The Google Eclipse plugin has been updated, as well as the Google App Engine Maven artifacts and plugin (just use the 1.7.7.1 version).
to solve the library error message, you have to do this:
1) open your windows explorer and locate it to your eclipse folder. e.g. ".\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.7.7\appengine-java-sdk-1.7.7\lib\user".
2) you will then see a file called "appengine-api-1.0-sdk-1.7.7.jar", rename it to "appengine-api-1.0-sdk-1.7.7.original". (just don't delete as you need in future)
3) copy that 2 files you created earlier - "appengine-api-1.0-sdk-1.7.7-1.jar" and "appengine-api-1.0-sdk-1.7.7-2.jar" and paste into this folder.
4) switch it eclipse ide, clean the project and rebuild it. then, the error message will go away.
i solved the issue by splitting the "appengine-api-1.0-sdk-1.7.7.jar" file my own.
in case anyone else want to know how to do that, follow these steps
1) unzip "appengine-api-1.0-sdk-1.7.7.jar" file from 7z.
2) balance them into 2 folders (each about 15mb) regardless any structure.
3) name the first folder as "appengine-api-1.0-sdk-1.7.7-1" and second folder as "appengine-api-1.0-sdk-1.7.7-2".
4) make sure you have jdk installed. e.g. "C:\Program Files\Java\jdk1.7.0_17\bin". set it to environment so you can run the file from that bin folder.
5) IMPORTANT: you must go into that first "appengine-api-1.0-sdk-1.7.7-1" folder and not at the parent folder of those folders.
6) launch cmd.exe and type "jar cf appengine-api-1.0-sdk-1.7.7-1.jar *" for the first archive.
7) do it again the same for the second archive (repeat step 5 and step 6).
8) go to \war\web-inf\libs folder, delete the existing appengine-api-1.0-sdk-1.7.7.jar.
9) copy and paste the appengine-api-1.0-sdk-1.7.7-1.jar and appengine-api-1.0-sdk-1.7.7-2.jar into \war\web-inf\libs folder.
10) now deploy it. it should work like charms!
EDIT:
Spelling correction.
Using that instruction :
To clarify, we're going to release a minor update for 1.7.7. For the
meantime, you can re-jar the file as follows:
cd to the working directory
$ jar xf somewhere\appengine-java-sdk-1.7.7\lib\user\
appengine-api-1.0-sdk-1.7.7.**jar
$ jar cfm somewhere\appengine-api-1.0-sdk-1.7.7.**jar META-INF/MANIFEST.MF *
and replace the old jar with the newly created one.
from http://www.mail-archive.com/google-appengine#googlegroups.com/msg67954.html
and the messages from the solutions here, I was able to make it work like this :
Open a command line and go into the bin directory of your JAVA installation where the jar.exe file is
cd "C:\Program Files\Java\jdk1.7.0_17\bin\"
Then, you need to find the file "appengine-api-1.0-sdk-1.7.7.jar" somewhere on your computer. It's at 2 places (not counting the temp directories), in the \war\WEB-INF\lib folder in your eclipse project and also in the "plugins" folder of your eclipse installation. Precisely there : \plugins\com.google.appengine.eclipse.sdkbundle_1.7.7\appengine-java-sdk-1.7.7\lib\
You just need one of those 2 paths.
Now in the command line, just type :
jar xf "C:\whatever-folder-your-eclipse-is-in\plugins\com.google.appengine.eclipse.sdkbundle_1.7.7\appengine-java-sdk-1.7.7\lib\user\appengine-api-1.0-sdk-1.7.7.jar"
and then
jar cfm "C:\whatever-folder-your-eclipse-is-in\plugins\com.google.appengine.eclipse.sdkbundle_1.7.7\appengine-java-sdk-1.7.7\lib\user\appengine-api-1.0-sdk-1.7.7.jar" META-INF/MANIFEST.MF
Now, if you go to that folder and check the .jar file, it should now be 11 mb instead of 30 something. Now you need to copy this one and replace the same jar in your webapp folder in \war\WEB-INF\lib\ so that both jars named "appengine-api-1.0-sdk-1.7.7.jar" have a 11 mb size.
Now the error should be gone and you don't have to split anything.

Create EXE output from a C project in NetBeans on Windows?

I'm new to NetBeans.
I am using NB on my PC.
I just cleaned & built a project and the output was:
CLEAN SUCCESSFUL (total time: 1s)
make: Nothing to be done for `all'.
BUILD SUCCESSFUL (total time: 1s)
Now I can't seem to find any executable.
How do I set the IDE to create an EXE file output from the project?
Update - Please read my comment bellow.
After you build, the executable should be in a path like PROJECT/dist/PLATFORM/project.exe (dist or build can't remember exactly)
Press F6 or Shift F6 for project main file.
Also if you are coding Java(NetBeans) then you must create a main method in the class.
EDIT: The file is available under $Projects -> $Projectname -> Debug || Release -> debug.exe || *.exe
I re-read the instructions of that project (FFmpeg), and I had to configure it first using ./configure in msys shell.
As per building ffmpeg with amv-codec-tools, that's simple:
Install MinGW + MSYS and add environment vars for their bin folders
Checkout the latest revision of amv-codec-tools to the msys\home folder
Remove the folder amv-codec-tools\AMVMuxer\ffmpeg
Checkout the latest revision of FFmpeg to amv-codec-tools\AMVMuxer\ffmpeg instead the previous ver.
Open the MSYS shell
Navigate to amv-codec-tools\AMVMuxer (cd /home/amv-codec-tools/amvmuxer)
Run make build
HTH

JAR file Database connection

a Database acces and Search Program.
a JAR file make use Windows command
a JAR file make use Eclipse Export->Jar file
run as 1 ... that run
run as 2 ... that error -> database connection NULL
1 source file and 2 source file same directory position, same files
please tell me , How I do about case 2 ??
.. I used library classes12.jar
download mysql-connector-java-5.1.16-bin.jar
If you have then set as an external jar file in the libraries section of Eclipse->Project->Properties->Java Build Path. Then make jar.Hope it helps.

Resources