File extractor that its user can't change the installation path - extractor

I would like to know how I can make some kind of file extractor. But the problem is usually users could just change the target path. I wanted that it will ONLY extract the files to the location I specified.
I've seen RAR's .sfx. I've seen InstallShield. I've seen iexpress.exe.
Thank you!
Sorry if I didn't make it clear. Please ask if so.

With Inno Setup you can achive this with the setting:
[Setup]
DisableDirPage=yes

Related

Is it possible to style the output of FSx/Lustre file system to change the look and feel?

I've been digging through all of the documents for FSx, Lustre, and Apache trying to find out if it is possible to style the look and feel of the HTTPS output of a Lustre file system.
Has anyone else already accomplished something similar?
Would this require Velocity or some other templating engine to be installed before it would be possible?
Many thanks!

is script autoloading possible in rebol or red-lang?

Is there a way to do so ? I searched Google but couldn't find any answer, so I guess the answer would be no. Is there anything close ? If not, would it be easy to extend red-lang to do so ?
From http://www.rebol.com/docs/setup.html
Startup Scripts
When REBOL starts it will automatically run the rebol.r and user.r files, if they exist.
The system looks for these files first in the current directory (or the directory of the script being run), then in the directory that contains the REBOL executable program.
Note that REBOL/Core runs fine without the rebol.r and user.r files. They simply provide an easy way to include additional code and data on startup, such as your network preferences.
If you compile your own Red interpreter you can add an autoloading file, maybe in console.red after system/console/init "Red Console" and before system/console/launch Best advice is to ask on the https://gitter.im/red/help site to ask for help. I guess this was already discussed.

How to find the path from where an app is started?

I put my EXE files (usually to edit/convert ASCII files) in an own directory. The directory path is also put in the PATH variable of the system, so I can start the programs from anywhere. So here my question:
Is there a way (in VB.net) to find from where I started my program?
I need to know that to put that path as initial directory for the openFile-Dialogues.
Thanks for your help,
Jan
There are a few ways to do this. Here are two:
System.AppDomain.CurrentDomain.BaseDirectory()
Or:
Application.StartupPath
Both will return strings of the path where your app was started.
Read more:
https://msdn.microsoft.com/en-us/library/system.appdomain.basedirectory(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/system.windows.forms.application.startuppath(v=vs.110).aspx
EDIT:
There is also this way, which checks the path based on the current executing/executed assembly:
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)
https://msdn.microsoft.com/en-us/library/aa457089.aspx
But personally I'd recommend the above two.
Ok, I found a quite simple answer. I already tried it once, but apparently under different circumstances. The right function is just CurDir(). Thanks for your efforts.

How can I get the used configure commandline options for the installed Qt5

I want to check if Qt5 was compiled with or without some options, regarding supported image formats. I know about the QImageReader supportedImageFormats function but I want to know the configure options.
Is there a way to retrieve the used commandline options of the configure call dynamically?
Cheers.
No, there is not. You could fake it, if you still have the source tree. In qt5/qtbase you find two files: config.summary and config.status. Those contain the info you seek. However, these files are not part of a normal installation.

C#, Gendarme, Sonar and Jenkins : Exclude generated files from Gendarme

I'm working with gendarme for .net called by Sonar (launched by Jenkins).
I've a lot of AvoidVisibleFieldsRule violations. The main violations are found in the generated files. As I can't do anything on it, i would like to exclude *.designer.cs from the scan.
I can't find a way to do that. There is a properties in Sonar to exclude generated files but it doesn't seem to be applied for gendarme.
Is there a way to do such a thing ?
Thanks for all
Gendarme expects you provide an ignore list,
http://www.mono-project.com/Gendarme.FAQ
https://github.com/mono/mono-tools/blob/master/gendarme/self-test.ignore
The ignore file format is bit of weird, but you can learn it by experiments.
Indeed that is actually not normal at all. Generated code is excluded by the plugin with the standard configuration. What version of the C# plugins are you using ?
Anyway, the configuration property you can try is "sonar.exclusions" (see http://docs.codehaus.org/display/SONAR/Advanced+parameters).
If you do not solve your problem right away, the best thing would be to drop a mail to the user mailing list (see http://www.sonarsource.org/support/support/) and send the verbose output of your build. To get this output simply add "-X" to the command line.
Hope it helps